This topic has not yet been rated Rate this topic

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)
Available in Sandboxed Solutions: No
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static bool SendEmail(
	SPWeb web,
	StringDictionary messageHeaders,
	string messageBody,
	bool appendFooter
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the site.
messageHeaders
Type: System.Collections.Specialized.StringDictionary
The name-value pairs for header fields.
messageBody
Type: System.String
Contains the body of the e-mail message.
appendFooter
Type: System.Boolean
true to append a footer to the e-mail message; otherwise, false.

Return Value

Type: System.Boolean
true if the e-mail message is sent successfully; otherwise, false.

The e-mail message will be sent to the address or addresses specified in the "to", "cc", and "bcc" headers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ