是否有.NET库通过电子邮件发送PROXY? [英] Is there .NET library for email sending via PROXY?

查看:261
本文介绍了是否有.NET库通过电子邮件发送PROXY?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过SMTP通过代理服务器上的Visual Studio发送电子邮件。
是否有任何电子邮件发送将支持代理库?

I want to send email via SMTP via proxy on visual studio. Is there any email sending library which would support proxy ?

推荐答案

我不知道你问的是什么。

I'm not sure exactly what you are asking.

当你谈论通过代理发送可以为您提供更多的细节?

When you talk about sending via a proxy can you give more detail?

如果你的意思是怎么办我送过SMTP HTTP代理,你不能。 HTTP代理服务器只支持HTTP和HTTPS,虽然有些代理服务器也支持FTP,SOCKS等,但不(据我所知)SMTP。

If you mean "how do I send SMTP over an HTTP proxy", you can't. HTTP proxies only support HTTP and HTTPS, although some proxy servers also support FTP, SOCKS, etc but not (as far as I know) SMTP.

有一个这样的作为SMTP代理的事情,但我不认为他们是很常见的;我觉得他们都是专有实现。当然,我还没有看到一个C#库来处理这样的代理,我不认为有这种单一的标准 - 我一直没能找到指定的标准一个RFC(或等效文件)

There is a such a thing as an SMTP proxy but I don't think they are very common; I think they are all proprietary implementations. I certainly have not seen a C# library to handle such a proxy, and I don't think there is a single standard for this - I've failed to find an RFC (or equivalent document) that specifies the standard.

而不是使用SMTP代理,这是比较正常的有一个存储 - 转发的邮件传输代理(MTA)。换句话说,你将建立一个正常的MTA,并有此接收电子邮件,并转发到其他MTA。如果这是你的安装的情况下,也无需特殊代码或库。只是使用的SmtpMail类,而不是担心实际上它确实是作为一个转发

Instead of using an SMTP proxy, It is more normal to have a "store-and-forward" mail transfer agent (MTA). In other words you would set up a normal MTA, and have this receive emails and forward them on to other MTAs. If this is the case in your setup, there is no special code or libraries required. Just sending your email direct to your local MTA using the SmtpMail class and not worry about the fact it is really acting as a "forwarder"

这篇关于是否有.NET库通过电子邮件发送PROXY?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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