来自 ASP .NET 的电子邮件

发布于 2024-07-10 02:53:45 字数 190 浏览 8 评论 0原文

我已经使用 smtp 类通过代码发送电子邮件。

我可以使用.net框架中的类来显示页面上收到的电子邮件,而不必使用诸如exchange sdk之类的东西吗?

我将如何在 .net web 应用程序(带有 .net 类)中使用 gmail pop 和 smtp 服务器信息来发送和接收电子邮件?

I have used the smtp class to send emails through code.

Can I use the classes in the .net framework to display emails received on a page without having to use something like exchange sdk?

How would I go about using gmail pop and smtp server information in .net web apps (with the .net classes) to send and receive email?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

断肠人 2024-07-17 02:53:45

是的,这是可能的。 您可能会发现使用众多可用的第三方组件之一会更容易,这些组件封装了您原本需要开发的大部分逻辑。

我喜欢 Chilkat 的电子邮件组件。 他们提供一个在线示例,展示如何使用他们的组件通过 POP3 访问 Gmail 收件箱。
他们还有一个
IMAP 组件,您可能会发现它很有用。

Yes, it's possible. You'll probably find it easier to use one of the many third-party components which are available and encapsulate much of the logic you would otherwise need to develop.

I like Chilkat's email component. They provide an online example showing how to use their component to access a Gmail inbox via POP3.
They also have an IMAP component which you might find useful.

风蛊 2024-07-17 02:53:45

如果没有任何第三方库,您无法从 .net 中的远程服务器检索电子邮件。

.Net 仅包含 SMTP 支持,对于 POP 和 IMAP,您必须使用另一个库。 (或者自己动手。)

顺便说一句,这个问题适用于任何邮件服务器/服务,而不仅仅是 gmail。

You cannot retrieve email from a remote server in .net without any 3rd party libraries.

.Net only includes SMTP support, for POP and IMAP you must use another library. (or roll your own.)

BTW this question applies to any mail server/service not just gmail.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文