One of the pretty common things you might need to do in a SharePoint application is to send an email. Since SharePoint has SMTP already configured this becomes pretty simple via the leveraging of the SharePoint Utilities API. These utility methods are especially useful for things like sending emails or converting Dates in SharePoint. Below is a snippet of what is needed to send an Email. Simply make the reference to the SharePoint.dll in your project and add the “Using” statement at the top of your file. Then it is just a matter of calling the right method! That’s it!
Add one of the following to the top of your class file:
using Microsoft.SharePoint.Utilities; (C#)
Imports Microsoft.SharePoint.Utilities (VB)
Then call the method from your code: SPUtility.SendEmail(SPContext.Current.Web, false, false,"firstname.lastname@example.org", "E-mail title", "E-mail body");