In this article we will discuss how to send email programmatically in SharePoint 2010 by using SharePoint Object model.
SPUtility class is used to send email programatically. This class will be avilable in namespace
using Microsoft.SharePoint.Utilities;
Here is the code sample to send email:
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
void
{
sendMail()SPUtility.SendEmail(SPContext.Current.Web, false, false, "tomailaddress@sharepointdotnet.com", "This is the subject", "This is the whole body");
}
Also you can visit some SharePoint 2010 articles here.
SPUtility class is used to send email programatically. This class will be avilable in namespace
using Microsoft.SharePoint.Utilities;
Here is the code sample to send email:
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
void
{
sendMail()SPUtility.SendEmail(SPContext.Current.Web, false, false, "tomailaddress@sharepointdotnet.com", "This is the subject", "This is the whole body");
}
Also you can visit some SharePoint 2010 articles here.
0 on: "Programtically send email in SharePoint 2010"