MOSS2007 using built-in e-mail transmission function (SPUtility)

We may want to send a message in MOSS program, but we do not want to send functions (because the need to specify a temporary smtp delivery address) with use of the mail .net, MOSS has a Microsoft.SharePoint.Utilities name space, which provides e-mail sending
first, we write the following code in the program:

None.gif using  Microsoft.SharePoint.Utilities;

Reusing Function

None.gif SPUtility.SendEmail

Very simple, and we can also see and use SPUtility in other functions.

Reproduced in: https: //www.cnblogs.com/baoposhou/archive/2007/08/14/854752.html

Guess you like

Origin blog.csdn.net/weixin_33913377/article/details/93551712