i have been working on generating email in an event receiver using share point object model..i used the sputility.sendemail method..2 things are necessary in the email(email from and HTML body)..so i used the SpUtility method...
public static bool SendEmail(
SPWeb web,
StringDictionary messageHeaders,
string messageBody
) but this method strips any HTML present in the body..so i looked same method diff parameters..
public static bool SendEmail(
SPWeb web,
bool fAppendHtmlTag,
bool fHtmlEncode,
string to,
string subject,
string htmlBody
)
public static bool SendEmail(
SPWeb web,
bool fAppendHtmlTag,
bool fHtmlEncode,
string to,
string subject,
string htmlBody,
bool appendFooter
) the above functions do provide the html body but no 'from' parameter...how can i have both the 'from' and 'body(HTML support)' parameters..any suggestions?