通过代理服务器发送邮件 [英] Sending Mail over proxy server

查看:695
本文介绍了通过代理服务器发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个使用代理服务器的LAN网络。在C#中,我试图开发一个可以发送电子邮件的应用程序。但是从我的网络,由于这个代理问题,我不能发送邮件。从任何其他网络,不依赖于代理服务器,发送邮件是没有问题的。

I am using a LAN network, which uses a proxy server. In C#, I am trying to develop an application through which I can send E-mails. 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.

我在命令提示符下键入 telnet smtp.gmail .com 25

I typed in command prompt, telnet smtp.gmail.com 25

,它显示它无法连接到smtp.gmail.com

and it displays it can't connect to 'smtp.gmail.com'

推荐答案

这听起来像你的代理显然拒绝gmail.com域(如果它的公司网络那么多)。你可以在你的浏览器中找到gmail.com(如果你不能这样做可能会让你的系统伙伴们看起来很危险)。

It sounds like your proxy is explicitly denying the gmail.com domain (if its a corporate network then many do). Can you reach gmail.com in your browser (if you can't this may put up a nasty looking alert from your systems guys).

有几种方法取决于此:


  1. 在smtp.gmail.com上取得阻止smtp.gmail.com或端口25 smtp.gmail.com。 >
  2. 获取一个使用smtp从gmail设置的smtp中继器。这里有一些信息这里

  1. Get smtp.gmail.com, or port 25 to smtp.gmail.com, unblocked on the proxy.
  2. Get an smtp relay put in place instaed of using smtp from gmail. There's some info on this here.

无论哪种方式,时间到了,给你的系统管理员!

Either way, time to go and be nice to your sys admins!

这篇关于通过代理服务器发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆