smime C# 带附件的加密电子邮件

发布于 2024-07-23 03:21:14 字数 440 浏览 12 评论 0 原文

我需要使用 C# 发送加密电子邮件,而不使用任何第三方组件。 只要我不需要电子邮件上的附件,这几乎就可以工作,但是一旦添加附件,我就会遇到与 http://social.msdn.microsoft.com/forums/en-US/netfxnetcom/thread/74e4711e -1f66-43a7-9e3b-bc9cfbcd1b73/

这里发布了一个解决方案,它使用attchment.rawdata和attachment.filename,这是我一无所知的项目。 什么可以是原始数据?

I need to send encrypted emails using C# without using any third party component. This is pretty much working as long as I do not need attchments on the email but as soon as I add attchments, I face the same problem as described on http://social.msdn.microsoft.com/forums/en-US/netfxnetcom/thread/74e4711e-1f66-43a7-9e3b-bc9cfbcd1b73/

There is a solution posted here which is using attchment.rawdata and attachment.filename which is some onject I know nothing about. What can be rawdata?

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

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

发布评论

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

评论(1

杀お生予夺 2024-07-30 03:21:14

请参阅附件的构造函数班级。

如果您传入一个 Stream,您几乎可以将任何内容放入附件中。

See the constructors for the Attachment class.

If you pass in a Stream you can pretty much put anything in the attachment.

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