Code Sample : How to programmatically send an email in SharePoint

If your SharePoint farm has been configured to use an SMTP server, then it is possible to send an email in code using the SPUtility class. The c# code below illustrates how to send a mail and return an XML string outlining what was sent for logging purposes :

I hope you find these details helpful

Here are some other recent posts you may find interesting...