ASP.net SMTP Mail, although a proxy

How to configure SMTPClientin ASP.net using C # to send email with the proxy address provided? or send by discovery of the default system proxy

I used the following code in web.configbut did not work

<system.net>
    <defaultProxy enabled="true">
      <proxy bypassonlocal="False" proxyaddress="http://192.168.101.3:8080/" />
    </defaultProxy>
  </system.net>
+1
source share
2 answers

You cannot send SMTP mail through an HTTP proxy server.

Talk with the person managing your Internet gateway / firewall to ask which host they want you to send outgoing emails to.

+1
source

Source: https://habr.com/ru/post/1741218/


All Articles