5. September 2007 06:54
It's easy to leverage the email server SharePoint is configured with already. This is the mail server used for alerts and notifications within the portal system.
You'll need to add a reference to the Microsoft.SharePoint.Utilities namespace.
using Microsoft.SharePoint.Utilities;
Then just use the SendEmail method:
SPUtility.SendEmail(SPContext.Current.Web, false, false, "to address", "subject line", "body");