Sending mail through a proxy server

I am using a LAN network that uses a proxy server. In C #, I am trying to develop an application through which I can send emails. But from my network I cannot send mail due to this problem. From any other network that is not dependent on the proxy server, there is no problem sending mail.

I typed the command line telnet smtp.gmail.com 25

and it shows that it cannot connect to 'smtp.gmail.com'

+1
source share
1 answer

It looks like your proxy explicitly prohibits the gmail.com domain (if its a corporate network, then many do). Can you reach gmail.com in your browser (if you cannot do this, you may come across a disgusting look from your system guys).

There are several ways:

  • Get smtp.gmail.com or port 25 at smtp.gmail.com, unlock the proxy server.
  • Get smtp relay installed using smtp from gmail. There is information about it here .

In any case, it's time to go and be pleasant for your system administrators.

0
source

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


All Articles