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:
using
Microsoft.SharePoint.Utilities;
Reusing Function
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