【发布时间】:2012-01-20 00:32:59
【问题描述】:
如何使用 C# 在 ASP.net 中设置 SMTPClient 以使用提供的代理地址发送电子邮件?或者通过检测系统默认代理发送
我在web.config 中使用了以下代码,但没有用
<system.net>
<defaultProxy enabled="true">
<proxy bypassonlocal="False" proxyaddress="http://192.168.101.3:8080/" />
</defaultProxy>
</system.net>
【问题讨论】:
-
您是否尝试在
Web.config中声明您的proxy? -
是的,也没有检查默认代理中的
Local bypass thing..