服务器不支持asp.net中的安全连接错误 [英] Server does not support secure connections error in asp.net

查看:150
本文介绍了服务器不支持asp.net中的安全连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

服务器不支持安全连接

我使用smtp.EnableSsl = true而且smtp.EnableSsl = false我仍然收到错误







请帮助.........

解决方案

尝试下面的代码< br $> b $ b

 SmtpClient SmtpServer =  new  SmtpClient(); 
SmtpServer.Credentials = new System.Net.NetworkCredential(user,password);
SmtpServer.Port = 25 ;
SmtpServer.Host = smtp.rediffmail.com;
SmtpServer.EnableSsl = false ;
// 当smpt主机是gmail时,SmtpServer.EnableSsl = true。


Server does not support secure connections
I used smtp.EnableSsl = true and also smtp.EnableSsl = false still i getting the error



Pls help.........

解决方案

try below code

SmtpClient SmtpServer = new SmtpClient();
SmtpServer.Credentials = new System.Net.NetworkCredential(user, password);
SmtpServer.Port = 25;
SmtpServer.Host = "smtp.rediffmail.com";
SmtpServer.EnableSsl = false; 
//SmtpServer.EnableSsl = true  when smpt host is gmail.


这篇关于服务器不支持asp.net中的安全连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆