if you have a mail server:
public bool SendEmail(string subj, string message)
{
bool sent = false;
try
{
SmtpClient client = new SmtpClient(this.strMailServer);
client.UseDefaultCredentials = true;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
MailMessage email = new MailMessage();
email.From = new MailAddress(this.strSendFrom);
email.To.Add(new MailAddress(this.strSendTo));
email.CC.Add(new MailAddress(this.strSendtoCC));
email.Subject = subj;
email.Body = message;
client.Send(email);
sent = true;
}
catch (Exception ex)
{
throw ex;
}
return sent;
}