如何在 Windows 上发送邮件(MAPI 除外)

发布于 2024-07-12 07:48:18 字数 280 浏览 13 评论 0原文

当查看 MSDN MAPI 文档页面时,它说该 API 现已弃用。 如果是这样的话,现在发送邮件的建议 API 是什么?

http://msdn.microsoft.com/en-us/library/dd296734.aspx

编辑:感谢您的所有建议,托管路由不适合我,因为我们使用的是 MFC。

When viewing the MSDN MAPI documentation page it says the API is now deprecated. If that's the case, what is the suggested API for sending mail these days?

http://msdn.microsoft.com/en-us/library/dd296734.aspx

Edit: Thanks for all the suggestions, the managed route isn't suitable for me as we're using MFC.

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

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

发布评论

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

评论(7

丢了幸福的猪 2024-07-19 07:48:18

如果您想在用户默认的MUA中打开消息,SMAPI是您的最佳选择。 如果您想在没有用户输入的情况下发送消息,那么上述建议是最好的。

If you want to open the message in the user's default MUA, SMAPI is your best choice. If you want to send a message without user input, then the above suggestions are best.

抱着落日 2024-07-19 07:48:18

据我所知,如果您不打算使用 Windows MAPI 或 SimpleMAPI,您将必须推出自己的 SMTP 客户端。

As far as I know if you aren't going to use the Windows MAPI or SimpleMAPI you will have to roll your own SMTP client.

陌伤ぢ 2024-07-19 07:48:18

.NET 2.0 框架使用 System.Net.Mail 命名空间中的邮件客户端。

这里有一个专门用于它的网站:http://www.systemnetmail.com/

The .NET 2.0 framework uses a mail client in the System.Net.Mail namespace.

There's a web site dedicated to it's use here: http://www.systemnetmail.com/

被你宠の有点坏 2024-07-19 07:48:18

在大多数情况下,最好的选择是直接使用 SMTP,在 .Net 2.0+ 中,System.Net.Mail 非常通用。 还有大量其他资源。 仅当您可以依赖 Oulook/OE/WinMail 进行设置和使用时,MAPI 才真正有效。 您没有指定 MAPI 的用法,因此您假设是 .Net。 使用您喜欢的平台/语言搜索 SMTP 客户端是您的最佳选择。

For the most part, your best bet is to use SMTP directly, in .Net 2.0+ System.Net.Mail is pretty versatile. There are tons of other resources. MAPI really only works if you can rely on Oulook/OE/WinMail to be setup, and in use. You didn't specify your usage of MAPI, so u presume .Net. Searching for an SMTP client in your prefered platform/language is your best bet.

拿命拼未来 2024-07-19 07:48:18

只需使用 Win32 WS api。
10行代码发送电子邮件

just use Win32 WS api.
10 lines of code to send an email

涙—继续流 2024-07-19 07:48:18

如果您想使用 SMTP 发送消息,那么您应该查看 Ultimate TCP/IP:

http ://www.codeproject.com/KB/MFC/UltimateTCPIP.aspx

它使得发送消息变得非常容易。

If you want to send a message using SMTP then you should check out Ultimate TCP/IP:

http://www.codeproject.com/KB/MFC/UltimateTCPIP.aspx

It makes it very easy to send a message.

柏林苍穹下 2024-07-19 07:48:18

如果您想使用系统上安装的邮件客户端,MAPI 仍然是最佳选择。 如果没有,您可能需要看看 ChilKat,它是一个 COM 组件。

If you want to use the mail client installed on the system, MAPI is still the way to go. If not, you might want a look at ChilKat, which is a COM component.

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