Trying to send mail via SMTP. No mails arrives and no exception error
问题 Problem: Have made a small mail program which works perfectly on my developer pc but when put into production it fails. protected void Page_Load(object sender, EventArgs e) { string smtpHost = ConfigurationManager.AppSettings["SmtpAddress"]; MailMessage mail = new MailMessage(); mail.From = new MailAddress(ConfigurationManager.AppSettings["FromMailAddress"]); mail.Sender = new MailAddress(ConfigurationManager.AppSettings["FromMailAddress"]); mail.To.Add(new MailAddress("zzz@xxx.yy")); mail