public bool SendEmailError(string ErrorMessage)
{
try
{
MailMessage message = new MailMessage();
message.From = ConfigurationManager.AppSettings["MessageFrom"];
message.To = "Sanjeewa@alliontechnologies.com";
message.Subject = "Error occurred caminarSoft.com";
message.BodyFormat = MailFormat.Html;
message.Body = ErrorMessage;
SmtpMail.SmtpServer = ConfigurationManager.AppSettings["SmtpServer"]; SmtpMail.Send(message);
return true;
}
catch (Exception ex)
{
return false;
}
}
Monday, November 5, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment