从外部程序回复(打开的)Outlook邮件 [英] Reply to an (open) outlook mail from an external program

查看:77
本文介绍了从外部程序回复(打开的)Outlook邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个外部应用程序中,我想回复一封电子邮件(Outlook是电子邮件客户端).该电子邮件已在计算机屏幕上打开.在回复中,我想插入一个由外部应用程序代码生成的回复.除了让消息在单独的Outlook窗口中回复已打开的电子邮件之外,我还可以搜索特定的邮件,然后使用代码进行回复.

In an external app I'd like to reply to an e-mail (Outlook is the email client). The email is already opened on the computer-screen. In the reply I would like to insert a reply generated in code from the external app. Instead of having the message to reply to an already opened email in a separate outlook-window, I could alternatively also search for the specific mail and then using code for replying.

有什么想法可以在Outlook对象中寻找什么?有任何代码示例(vb.net或c#)吗?

Any ideas what to look for among the outlook objects? Any code-examples (vb.net or c#)?

我已经知道如何通过代码从外部应用程序在Outlook中创建新电子邮件,但是我不确定如何回复现有电子邮件.

I already know how to create a new e-mail in outlook from my external app through code but I am unsure how to reply to an existing email.

推荐答案

使用Application.ActiveExplorer.CurrentItem访问当前打开的消息,然后调用MailItem.Reply以获取MailItem对象的答复,修改其消息主体(MailItem.Body ),请调用MailItem.Display以将其显示给用户.

Use Application.ActiveExplorer.CurrentItem to access the currently open message, then call MailItem.Reply to get the reply MailItem object, modify its message body (MailItem.Body), call MailItem.Display to show it to the user.

这篇关于从外部程序回复(打开的)Outlook邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆