views:

548

answers:

3

I need to know what is the best practice for sending emails from my sharepoint webparts and/or customized features.

Should I just use the normal .Net classes to send email ? or is their a better way to do it through integration with an outlook server ?

+10  A: 

Easy way is to use the built in Utilities, this will then use the mail server setttings setup in central admin

using Microsoft.SharePoint.Utilities;
SPUtility.SendEmail(SPContext.Current.Web, false, false,
     "[email protected]", "subject",
     "body");
Daniel Pollard
This uses the from address specified in CA admin. If you want custom from addresses, go with normal .net classes.
ArjanP
A: 

is there a way to create tasks and appointments using Microsoft.Office.Interop.Outlook namespace from sharepoint webparts?

Mathew
A: 

Is this possible to email from SharePoint? Can you email from a SharePoint list, if a particular button is selected in the form?