Something like this: :-D
string strFrom = "me@me.com";
string strTo = "to@to.com";
string strSubject = "subject";
string strBody = "hello there";
string mailHost = "mail server name";
using (System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage())
{
msg.From = new System.Net.Mail.MailAddress(strFrom);
msg.To.Add(strTo);
msg.Subject = strSubject;
msg.Body = strBody;
try
{
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient(mailHost);
mailClient.Send(msg);
}
catch (Exception caught)
{
}
}