Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Wednesday, April 6, 2011

Sending email Sputility in Sharepoint

Configure Email in IIS server:

http://technet.microsoft.com/en-us/library/cc263462.aspx#section2

WebPart Coding:

 SPWeb thisWeb = SPControl.GetContextWeb(Context);
                string toField = "suthahar@gmail.com";
                string subject = "Test Message";
                string body = "Message sent from SharePoint";
                bool success = SPUtility.SendEmail(thisWeb, true, true, toField, subject, body);

No comments:

Post a Comment