Saturday, January 13, 2007
TIP: Sending mail from SharePoint
Sending an e-mail from code in .NET isn't very hard, but you will have to configure an SMTP server. When your code runs inside SharePoint (WSS 3 or MOSS 2007), this shouldn't be necessary, as SharePoint already knows a working SMTP server (it uses this to send out alert e-mails and other mail). To use this and bypass the configuration bogus, send e-mail using this snippet:
using Microsoft.SharePoint.Utilities;
SPUtility.SendEmail(SPContext.Current.Web, false, false,
"to-address@mail.com", "E-mail title",
"E-mail body");Labels: sharepoint
Wednesday, January 10, 2007
Sources of the GanttChart web part
Someone asked for the sources of the GanttChart web part. While I intend the part to be available for everyone free of charge, I haven't decided on any formal licence yet. I promise not to sue you if you use this code, both for commercial and non-commercial uses. You have no permission to remove the link to my blog from the editor interface, though. Everything provided "as is".
Download the sources here.
Oh, and if you create extensions or fixes that would serve not only yourself, it would be really nice if you share them too.
Download the sources here.
Oh, and if you create extensions or fixes that would serve not only yourself, it would be really nice if you share them too.
Labels: sharepoint

