SPUtility.SendEmail Method (SPWeb, StringDictionary, String, Boolean)
Sends the e-mail message to the specified address.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
SPUtility Members
Microsoft.SharePoint.Utilities Namespace
MIME Headers
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
public static bool SendEmail ( SPWeb web, StringDictionary messageHeaders, string messageBody, bool appendFooter )
Parameters
- web
A Microsoft.SharePoint.SPWeb object that represents the site.
- messageHeaders
Name-value pairs for header fields.
- messageBody
Sends the e-mail message to the specified address.
- appendFooter
true if there is a footer to be appended to the e-mail; otherwise false.
Return Value
If true, the e-mail is sent successfully; otherwise, false.The value that specifies the sender of the e-mail message is populated from the global configuration context, if it is not supplied through the HttpContext object.
Reference
SPUtility ClassSPUtility Members
Microsoft.SharePoint.Utilities Namespace
Other Resources
EmailSignature PropertyMIME Headers