【发布时间】:2011-08-22 04:13:06
【问题描述】:
MailMessage mail = new MailMessage();
mail.To.Add("makovetskiyd@yahoo.co.uk");
mail.From = new MailAddress("makovetskiyd@yahoo.co.uk");
mail.Subject = "Test Email";
string Body = "Welcome to CodeDigest.Com!!";
mail.Body = Body;
SmtpClient smtp = new SmtpClient();
smtp.Host = ConfigurationManager.AppSettings["SMTP"];//i get nuller point exception here.. what does the class configuration manager do?
smtp.Send(mail);
【问题讨论】:
-
每次在论坛收到消息 ?
-
是的。当消息被接受时,我有代码。我希望它像 youtube 一样工作!
-
请不要完全改变您的问题。如果您有新问题,请发布新问题。