Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

How to setup SMTPClient in ASP.net with C# to send email with provided proxy address ? or sending by detecting the system default proxy

I used the the following code in web.config but didnt work

<system.net>
    <defaultProxy enabled="true">
      <proxy bypassonlocal="False" proxyaddress="http://192.168.101.3:8080/" />
    </defaultProxy>
  </system.net>
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
2.4k views
Welcome To Ask or Share your Answers For Others

1 Answer

You can't send SMTP email through an HTTP proxy server.

Speak to the person administering your Internet gateway/firewall to ask what host they want you to direct outbound email to.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share
...