哈哈哈 利用SmtpClient发送邮件
1 163邮箱 HOST:smtp.163.com public static string 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 this new feature, you can send an e-mail message from an application very easily." ; MailMessage message = new MailMessage(); message.From = new MailAddress(_from); //可以利用MailMessage.To.Add方法增加要发送的邮件地址 message .To .Add ( new MailAddress ( "652105072@qq.com" )); message.To.Add( new MailAddress(_to)); message.Subject = _subject;