C# QQ smtp发送邮件为咩发不出去,提示超时
SmtpClient client = new SmtpClient("smtp.qq.com", 465);NetworkCredential cr = new NetworkCredential("****************@qq.com", "**********");
client.Credentials = cr;
MailMessage mail = new MailMessage();
MailAddress addfrom = new MailAddress("...............", "gfd");
mail.From = addfrom;
// mail.Priority =MailPriority.Normal ;
MailAddress addto = new MailAddress("...............", "gfd");
mail.To.Add(addto);
// mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;
//client.EnableSsl = true;
// client.UseDefaultCredentials = true;
//client.DeliveryMethod = SmtpDeliveryMethod.Network;
mail.BodyEncoding = Encoding.UTF8;
mail.IsBodyHtml = true;
mail.Subject = "abcjhgjhgfgds";
mail.Body = "<b>abc</b>gfdgfdgfdg";
client.Send(mail);
465是个什么鬼?
stmp的端口不是25嘛? 堕落ぁ狼 发表于 2015-3-22 11:56
465是个什么鬼?
stmp的端口不是25嘛?
25,587直接报错,465超时.
就qq邮箱麻烦
163,25就能发 warfid 发表于 2015-3-22 16:54
25,587直接报错,465超时.
就qq邮箱麻烦
163,25就能发
qq邮箱需要设置开启stmp功能开了木有 堕落ぁ狼 发表于 2015-3-22 22:56
qq邮箱需要设置开启stmp功能开了木有
开了的哦 堕落ぁ狼 发表于 2015-3-22 22:56
qq邮箱需要设置开启stmp功能开了木有
都开了的哦,就是超时 有人用smtp這個方法暴力破解QQ密碼,而且還不會產生驗證碼,騰訊應該封了這個端口 UsingBug 发表于 2015-3-23 00:38
有人用smtp這個方法暴力破解QQ密碼,而且還不會產生驗證碼,騰訊應該封了這個端口
这么强力……
页:
[1]