如何配置我的asp.net应用程序以接收电子邮件 [英] How to configure my asp.net application to Receive Email

查看:96
本文介绍了如何配置我的asp.net应用程序以接收电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有很多关于如何发送电子邮件的文章,但是没有有关如何接收电子邮件的信息.我想问一下,假设我现在使用域网(www.webmail.com)运行我的Webmail,如果使用yahoo或其他电子邮件服务在www.webmail.com上发送了电子邮件,那么我如何在这里接收电子邮件.应该编写什么c#代码来接收电子邮件.请帮忙.

谢谢

Hello all,

There are a lot of articles written that how send email but there is no information about how to receive email. I want to ask, let suppose i am running my webmail with domain as www.webmail.com now if an email is sent on www.webmail.com using yahoo or other email service then how can i receive the email over here. What c# code should be written to receive the email. Kindly help.

Thanks

推荐答案

请参阅我对问题的评论.由于ASP.NET与HTTP(HTTPS)一起使用,而不与电子邮件协议一起使用,因此该问题毫无道理.没有什么可以配置"的.如果您只是解释要使用电子邮件做什么(不,接收"不是对它的明确定义)以及想要什么功能,那将是有道理的.您可能不需要与ASP.NET相关的任何内容,但需要设置例如基于SMTP的服务.或者,您是否需要Web前端到包含已存储消息的邮箱?您需要使用SMTP或IMAP.

请参阅:
http://en.wikipedia.org/wiki/电子邮件 [ http://en.wikipedia.org/wiki/SMTP [ http://en.wikipedia.org/wiki/Mail_server [ http://en.wikipedia.org/wiki/Post_Office_Protocol [ http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol [ http://www.codeproject.com/search.aspx?q=POP3+%22C% 23%22 [ ^ ],
http://www.codeproject.com/search.aspx?q=Pop3+%22C% 23%22 [ ^ ].

—SA
Please see my comment to the question. As ASP.NET works with HTTP (HTTPS), not with e-mail protocols, the question makes no sense. There is nothing to "configure". It would make sense if you simply explained what do you want to do with e-mail (no, "receive" is not an unambiguous definition of it) and what functionality you want. It is possible that you don''t need anything related to ASP.NET but need to setup, say, SMTP-based service. Or do you need a Web front-end to a post boxes with stored messages? They you would need to work with SMTP or IMAP.

Please see:
http://en.wikipedia.org/wiki/E-mail[^],
http://en.wikipedia.org/wiki/SMTP[^],
http://en.wikipedia.org/wiki/Mail_server[^], see also "Transfer versus Access" section,
http://en.wikipedia.org/wiki/Post_Office_Protocol[^],
http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol[^].

If you determine for yourself what exactly do you need, you will probably find a lot of help. For example, see on CodeProject:
http://www.codeproject.com/search.aspx?q=POP3+%22C%23%22[^],
http://www.codeproject.com/search.aspx?q=Pop3+%22C%23%22[^].

—SA


可能比您想知道的要多得多
http://www.example-code.com/csharp/email.asp [ ^ ]
Probably more than you would ever want to know
http://www.example-code.com/csharp/email.asp[^]


这篇关于如何配置我的asp.net应用程序以接收电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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