支持UTF-8或Unicode的Delphi SMTP组件

发布于 2024-07-13 03:34:38 字数 212 浏览 9 评论 0原文

似乎 Delphi 2009 附带的 Indy 10 SMTP 组件不能正确支持 unicode在主题和正文中。

有谁知道一个好的替代方案,或者有人对 Indy10 进行了必要的更改来解决这个问题?

It appears the Indy 10 SMTP component shipped with Delphi 2009 do not properly support unicode in the subject and body.

Does anyone know of a good alternative, or has anyone made the necessary changes to Indy10 to solve this issue?

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

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

发布评论

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

评论(8

尤怨 2024-07-20 03:34:38

我还要指出的是,大多数邮件服务器可能无法正确处理邮件主题行中的 Unicode。 我还没有看到任何关于这方面的真实统计数据,但我的猜测是,很大一部分邮件服务器仍然期望使用 ascii 主题行,因为我相信这就是 RFC 的定义。

(当然可以对消息正文进行编码以确保其通过。)

I would also note that most mail servers may not handle Unicode properly in the mail subject line. I haven't seen any real statistics on this, but my guess is that a very healthy percentage of mail servers still expect ascii subject lines as I believe that's what the RFC's define.

(The message body can of course be encoded to ensure it goes through.)

伴梦长久 2024-07-20 03:34:38

您可以使用 Indy 10 查看此解决方案(在俄语字符集上测试)

http://dev-doc.blogspot.com/2012/08/delphi-indy-10-ssl-and-encoding-issues.html

You can check out this solution with Indy 10 (tested on russian charsets)

http://dev-doc.blogspot.com/2012/08/delphi-indy-10-ssl-and-encoding-issues.html

在风中等你 2024-07-20 03:34:38

自 D2009 最初发布以来,Indy 10 已经进行了更新,现在可以更好地处理 Unicode。 查看 Indy 的 SVN 中当前的 Tiburon 快照。

Indy 10 has been updated since D2009's initial release to handle Unicode better now. Have a look at the current Tiburon snapshot in Indy's SVN.

旧夏天 2024-07-20 03:34:38

我肯定会关注 nSoftware.com 的 IPWorks。 他们的最新版本应该完全兼容 Delphi 2009。

I would definitely look at IPWorks from nSoftware.com. Their latest version is supposed to be fully Delphi 2009 compliant.

粉红×色少女 2024-07-20 03:34:38

我会看看 Synapse 它可以正确处理主题和正文中的 unicode。 您需要通过 SVN 存储库下载存储库,该存储库更比网站上列出的下载版本更新。 SVN 版本包括对 Delphi 2009 的支持。

I would look at Synapse which does properly handle unicode in the subject and body. You will need to download the repository via the SVN repository, which is more up to date than the version listed for download on the website. The SVN version includes support for Delphi 2009.

-小熊_ 2024-07-20 03:34:38

EasyMail 表示它支持 RFC 2047,Rob 提到该 RFC 2047 可以处理非 ASCII 主题行:

http ://www.componentsource.com/products/easymail-objects/summary.html

EasyMail says it supports RFC 2047 which Rob mentioned as handling non-ascii subject lines:

http://www.componentsource.com/products/easymail-objects/summary.html

蓦然回首 2024-07-20 03:34:38

最近在 Indy 10 的 IdHeaderoderUTF 类中发现了一个错误,在对包含 Unicode 字符的电子邮件标头进行编码时,该错误会阻止 UTF-7 和 UTF-8 正常工作。

A bug was recently discovered in Indy 10's IdHeaderoderUTF class that would prevent UTF-7 and UTF-8 from working properly when encoding email headers that have Unicode characters in them.

天生の放荡 2024-07-20 03:34:38

感谢大家的建议,我想我已经找到了一个真正有效的组件。 它是一个 ActiveX 而不是 Delphi 组件,但确实有效。 又好又简单。

该组件是 Chilkat SMTP 组件这里的代码示例完全符合我的要求,并且有效!!!

Thanks to everyone for the suggestions, I think I've found a component that really works. Its an ActiveX rather than Delphi component, but does the trick. Nice and simple.

The component is The Chilkat SMTP component . The code example here does exactly what I want and it works!!!

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