Follow in Twitter & Facebook

Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools

Tuesday, May 29, 2012

Programtically send email in SharePoint 2010

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; 

sendMail()SPUtility.SendEmail(SPContext.Current.Web, falsefalse"""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"