try
{
SmtpClient sc = new SmtpClient();
//sc.Host = "10.100.7.111";
sc.Host = "10.100.3.109";
sc.Port = 25;
//sc.Credentials = new System.Net.NetworkCredential("", "");
//-- sc.EnableSsl = false;
sc.Send(mm);
//return true;
}
catch (Exception ex)
{
throw new Exception("Mail has not send successfully " + ex.ToString());
// return false;
}
No comments:
Post a Comment