使用QQ的SMTP发送邮件

MailAddress to = new MailAddress("mattins@qq.com");
                MailAddress from = new MailAddress("qdream@qq.com");
                MailMessage msg = new MailMessage(from,to);
                msg.Subject = "来自浏览者 "+email+" 的消息";
                msg.Body =content;
                SmtpClient sc = new SmtpClient();
                sc.Credentials = new NetworkCredential("qdream@qq.com","passworld");
                sc.Host = "smtp.qq.com";
                sc.Send(msg);
原文地址:https://www.cnblogs.com/mattins/p/1737511.html