配置文件:
<system.net>
<mailSettings>
<smtp from="[email protected]">
<network
host="mail.xxxxxx.com"
port="25"
password="password"
userName="[email protected]"
defaultCredentials="false"
/>
</smtp>
</mailSettings>
</system.net>
我已经尝试过 defaultCredentials="true" 但收到以下消息:
System.FormatException:Smtp 服务器返回无效响应。
如何解决这个问题?
将 smtp 元素上的 DeliveryMethod 属性设置为“network”。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)