简体   繁体   English

通过代理服务器发送邮件

[英]Sending Mail over proxy server

I am using a LAN network, which uses a proxy server. 我正在使用使用代理服务器的LAN网络。 In C#, I am trying to develop an application through which I can send E-mails. 在C#中,我试图开发一个可以通过其发送电子邮件的应用程序。 But from my network, I can't send mail due to this proxy issue. 但是由于这个代理问题,无法从我的网络发送邮件。 From any other network, not dependent on proxy server, there is no problem to send mail. 通过任何其他不依赖于代理服务器的网络,发送邮件都没有问题。

I typed in command prompt, telnet smtp.gmail.com 25 我在命令提示符下键入telnet smtp.gmail.com 25

and it displays it can't connect to 'smtp.gmail.com' 并且显示它无法连接到“ smtp.gmail.com”

It sounds like your proxy is explicitly denying the gmail.com domain (if its a corporate network then many do). 听起来您的代理人明确拒绝了gmail.com域(如果是公司网络则很多)。 Can you reach gmail.com in your browser (if you can't this may put up a nasty looking alert from your systems guys). 您能否在浏览器中访问gmail.com(如果无法访问,则可能会引起系统人员的讨厌警报)。

There are a couple of ways round this: 有几种解决方法:

  1. Get smtp.gmail.com, or port 25 to smtp.gmail.com, unblocked on the proxy. 获取smtp.gmail.com或端口25到smtp.gmail.com,在代理上不受阻止。
  2. Get an smtp relay put in place instaed of using smtp from gmail. 从Gmail中获取就位使用smtp的smtp中继。 There's some info on this here . 有一些这方面的信息在这里

Either way, time to go and be nice to your sys admins! 无论哪种方式,时间都对您的系统管理员好!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM