C# 使用 Exchange 打开带有附件的空白电子邮件

发布于 2024-07-18 06:11:39 字数 198 浏览 3 评论 0原文

我是 C# 编程世界的新手,但希望有人能帮助我。

我正在尝试使用 C# 在 Outlook 中打开一封带有指定附件的空白电子邮件。
换句话说,打开电子邮件,收件人:和主题:字段为空,但电子邮件具有我的代码中指定的附件。 我希望我的用户能够修改电子邮件并将其发送给她/他指定的任何用户。 我确信我们有 Exchange...那么有什么想法吗?

I'm new to the world of C# programming but was hoping someone could help me out.

I'm trying to use C# to open up a blank email in Outlook with a specified attachment.
In other words, open the email, the TO: and SUBJECT: fields are blank but the email has an attachment that is specified in my code. I want my user to be able to modify the email and send to whatever users s/he specifies. I know for sure that we have Exchange....so any ideas?

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

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

发布评论

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

评论(2

从﹋此江山别 2024-07-25 06:11:39

有多种方法可以做到这一点。

创建一个 Outlook 插件,通过新的工具栏按钮打开一封带有所需附件的新邮件。

在 Outlook VBA 宏中执行相同的操作。

您也可以创建一个新表单,其中已包含附件,然后只使用该表单。(但附件将被硬编码等)

附件是否会更改? 还是每次都一样? 您使用的 Outlook 版本是什么? 你有什么编程能力?

76梅尔

There are a number of way you can do this.

Create an Outlook addin that opens a new mail with the attachment you want via say a new toolbar button.

Do the same in Outlook VBA macro ..

Also you could create a new form with the attachment in it already and then just us that form.(but the attachment will be hard coded etc.)

Does the attachment change ? or is it the same one evey time ? what outlook version are you using ? What are you programing capabilties ?

76mel

我认为交换不会对您有太大帮助,您需要在用户计算机上使用 Outlook。 您可以添加对 Outlook 互操作程序集的引用,应位于添加引用对话框的 Com 选项卡中。

这里有一些可以帮助您快速入门的链接。

http://msdn.microsoft.com/en-我们/library/microsoft.office.interop.outlook.aspx
http://www.microeye.com/resources/res_tech_vsnet.htm

祝你好运!

I don't think exchange will help you much, you need to work with outlook on the users machine. You can add a reference to the Outlook interop assemblies, should be in the Com tab of your add references dialog.

Here's some links to jump start you.

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.aspx
http://www.microeye.com/resources/res_tech_vsnet.htm

Good Luck!

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