System.Web.Mail中的验证问题
昨天想做一个遇错自动发邮件通知owner的功能,想到的是System.Web.Mail中的SmtpMail: MailMessage mail = new MailMessage(); mail.Subject = “XX is going down”; mail.Body = “Pls check asap”; mail.From = “sender@xx.com”; mail.To = “owner1@xx.com; owner2@xx.com”; //semicolon-delimited receiver list mail.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/sendusing”, 2); //use 2 to send using SMTP over the network mail.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/smtpauthenticate”, 1); //use basic authentication mail.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/sendusername”, “username”) mail.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/sendpassword”, [...]