How to Send an EMail From WebPart in MOSS 2007

Hi Devs, The following is the piece of code to send Email from webpart.

z uporabo sistema; uporabo System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Collections.ObjectModel; using Microsoft.SharePoint.Utilities; uporabo Microsoft.SharePoint; using System.Data; using System.Collections; namespace SendMail { public class SendMail : Microsoft.SharePoint.WebPartPages.WebPart { private TextBox txtTo; private Button btnSendMail; protected override […]