从网站发送电子邮件时出错 [英] error when sending email from website

查看:142
本文介绍了从网站发送电子邮件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从网站发送电子邮件.但我遇到的问题是不会一直出现.
我的问题是我添加了.

i am sending email from web site. but i have problem that does not occour all the time.
my problem is i have added.

smtp.EnableSsl = false;



但有时会产生错误,因为我发送的电子邮件必须具有



but some times it''s generate error, becuase emails i send must have

smtp.EnableSsl = true;

和其他的smtp.EnableSsl = false;

那么解决方案是什么呢?

and for others smtp.EnableSsl = false;

so what is the solution ??

推荐答案

邮件服务器可能会要求您通过SSL发送或不通过SSL发送,这取决于它们的设置方式.

最好的选择是配置自己的邮件服务器,并通过该邮件服务器而不是多个不同的邮件服务器发送所有电子邮件.
Mail servers may require you to send via SSL or not depending on how they are setup.

Your best option is to configure your own mail server and send all your emails through that mail server instead of multiple different mail servers.


这篇关于从网站发送电子邮件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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