如何从支持pop3的远程邮件服务器中检索到我的asp.net网站的电子邮件.在C#中? [英] how to retrieve e-mail from a remote mail server that support pop3 ,to my asp.net website. in C#?
本文介绍了如何从支持pop3的远程邮件服务器中检索到我的asp.net网站的电子邮件.在C#中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从支持pop3的远程邮件服务器中检索到我的asp.net网站的电子邮件.在C#中?
how to retrieve e-mail from a remote mail server that support pop3 ,to my asp.net website. in C#?
推荐答案
Google是您的朋友:很好,经常拜访他.与在这里发布问题相比,他可以更快地回答问题.
快速搜索获得了超过400万次匹配: ^ ]
热门广告是在此站点上:从POP3检索邮件使用C#的服务器 [ ^ ]
将来,请尝试至少自己进行基础研究,不要浪费您的时间或我们的时间.
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
A very quick search gave over 4 million hits: https://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=get+pop3+mail+c%23[^]
The top hit was on this very site: Retrieve Mail From a POP3 Server Using C#[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
在本文中查看此
在ASP.NET中阅读Gmail收件箱邮件 [ ^ ]
本文是为gmail
设置的默认版本
相同的代码可用于remort服务器,
将主机名更改为您的主机名,(Pop3Client.aspx.cs,DisplayPop3Email.aspx.cs)
还将邮件服务器端口更改为您的邮件服务器端口(Pop3Client.aspx.cs)和
另外,如果您的服务器不支持安全登录,请输入代码
(App_Code \ Pop3.cs文件)
check this article for this
Read Gmail Inbox Message in ASP.NET[^]
this article is defalt set for gmail
Same code can used for remort server,
change the host name to you host name,( Pop3Client.aspx.cs,DisplayPop3Email.aspx.cs )
also change the mail server port to your mail server port(Pop3Client.aspx.cs) and
also if your server not support secure login, then command the code
(App_Code\Pop3.cs file )
//if (IsSecure)
//{
// SslStream secureStream = new SslStream(Client.GetStream());
// secureStream.AuthenticateAsClient(Host);
// ClientStream = secureStream;
// secureStream = null;
//}
//else
这篇关于如何从支持pop3的远程邮件服务器中检索到我的asp.net网站的电子邮件.在C#中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文