如何在ASP.NET应用程序中接收来自Gmail的邮件?

编程入门 行业动态 更新时间:2024-10-14 14:17:20
本文介绍了如何在ASP.NET应用程序中接收来自Gmail的邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在ASP.NET应用程序中接收来自Gmail的邮件?有Gmail API吗?

How do I receive mail from Gmail within my ASP.NET application? Is there a Gmail API?

推荐答案

Google允许Google在其GMail帐户上启用IMAP支持.然后,您可以使用IMAP库访问收件箱(即阅读(标记)邮件,删除邮件等)

Google allows one to enable IMAP support on their GMail account. Then you can use an IMAP library to access the inbox (i.e. read (mark) messages, delete messages etc.)

当然,您没有使用图书馆.您可以实现自己的IMAP客户端,但是使用库可以使您轻松很多.

Of course, you don't have to use a library. You could implement your own IMAP client but a library will make it a lot easier for you.

以下是用于.NET的几个IMAP库:

Here are a couple of possible IMAP libraries for .NET:

  • interimap.codeplex/

www.rebex/mail/tutorial-imap .aspx

正如@Douglas所建议的,当然,IMAP不一定是您唯一的选择.如果您更喜欢POP3,则可以使用POP3库.

As @Douglas suggested, of course, IMAP need not be your only option. If you have a preference for POP3 you could just as well use a POP3 library.

更多推荐

如何在ASP.NET应用程序中接收来自Gmail的邮件?

本文发布于:2023-11-15 15:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1595865.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   邮件   如何在   NET   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!