摘要: 使用.netmail发送邮件,在配置文件里设置mailSettings,但不能正常工作,然后在测试页面上显示配置内容,发现获取的全是空,这是什么原因啊XML/HTML code?1234567891011121314151617181920212223242526272829303132333435363738394041424344<?xmlversion="1.0"?><configuration><appSettings><add/></appSettings><connectionStrings/&g 阅读全文
posted @ 2012-11-14 16:19 MFT 阅读(501) 评论(0) 推荐(1) 编辑
摘要: 1 163邮箱 HOST:smtp.163.compublic staticstring CreateTimeoutTestMessage(string server){ string Success = "发送成功"; try { string _to = "1035092449@qq.com";string _from = "young-20@163.com"; string _subject = "Using the new SMTP client.";string _body = @"Using 阅读全文
posted @ 2012-11-14 15:49 MFT 阅读(13359) 评论(1) 推荐(4) 编辑
摘要: 想写一个发送邮件的程序, MailAddress From = new MailAddress("xxxxxx@sina.com"); MailAddress To = new MailAddress("xxxxx@qq.com"); MailMessage myMail = new MailMessage(From, To); myMail.Subject = "这是x发来的邮件"; myMail.Body = "试试功能"; SmtpClient client = new SmtpC... 阅读全文
posted @ 2012-11-14 15:07 MFT 阅读(342) 评论(0) 推荐(0) 编辑