首页 新闻 会员 周边 捐助

QQ邮箱发送信息不成功,也不报错

0
[已关闭问题] 关闭于 2019-06-13 09:39

using (MailMessage mailmessage = new MailMessage())
using (SmtpClient smtpclient = new SmtpClient("smtp.qq.com"))
{
//填补邮件信息
//mailmessage.To.Add("947806342@qq.com");
mailmessage.To.Add(diz);//可以有多个
mailmessage.Body = "您好"+Name+",您的密码设置为初始 密码为123456,登陆后可重新修改。";
mailmessage.From = new MailAddress("xxx@qq.com");
mailmessage.Subject = "银豪KTV";
smtpclient.Credentials = new System.Net.NetworkCredential("xxx@qq.com", "邮箱凭证");
smtpclient.Send(mailmessage);//发送

坏坏少爷的主页 坏坏少爷 | 菜鸟二级 | 园豆:202
提问于:2019-06-13 09:33
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册