SharePoint 2007 Email SPUtility.SendMail() Guide
This is just a note that I have for using the email server specified in the SharePoint central admin.
StringDictionary headers = new StringDictionary();
headers.add("to","[email protected]");
headers.add("cc","[email protected]");
headers.add("bcc","[email protected]");
headers.add("from","[email protected]");
headers.add("subject","How to use SendEMail from SPUtility");
headers.add("content-type","text/html"); //This is the default type, so isn't neccessary.
string bodyText ="This is the body of my email, in html format.“;
SPUtility.SendEmail(web, headers, bodyText);
Reference Link : http://www.myfatblog.co.uk/?p=79
MSDN Links :-
http://msdn.microsoft.com/en-us/library/ms454274.aspx
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.sendemail.aspx
Posted via email from Benjamin Wong's Posterous | Comment »












