Compartilhar via


SendEmail Method

The SendEmail method of the SPUtility class sends the e-mail message to the specified address.

Parameters

web   A Microsoft.SharePoint.SPWeb object that represents the site.

fAppendHtmlTag  true to append an HTML tag to the message; otherwise, false.

fHtmlEncode  true to encode the message and replace characters in HTML tags with entities; otherwise, false.

to   The address to which to send the e-mail.

subject   A string that contains the subject for the e-mail message.

htmlBody   A string that contains the body of the e-mail message.

Return Value

true if the e-mail is sent successfully; otherwise, false.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security