展望自动化 - 更改发件人帐户 [英] Outlook automation - Change Sender Account

查看:254
本文介绍了展望自动化 - 更改发件人帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我自动化Outlook和我需要控制的电子邮件似乎是从谁。用户将有两个或多个账户在Outlook中设置了,我需要能够选择哪个帐户从发送电子邮件。任何想法?

I'm automating Outlook and I need to control who the email appears to be from. The users will have two or more Accounts set up in Outlook and I need to be able to select which account to send the email from. Any ideas?

在需要Outlook 2003和上方得到支持。我使用的是2006年德尔福code这一点,但是这并不重要。

Needs to be supported on Outlook 2003 and above. I'm using Delphi 2006 to code this, but that doesn't really matter.

推荐答案

名为苏毛思迪的人,写了关于这个问题的pretty汇总<一个href=\"http://groups.google.com/group/microsoft.public.office.developer.outlook.vba/browse_thread/thread/f56c553d9884bfd2?pli=1\"相对=nofollow> microsoft.public.office.developer.outlook.vba 。

A person named Sue Mosher wrote up a pretty summary on this issue in microsoft.public.office.developer.outlook.vba.

在短,它归结为任一此:

In short, it boils down to either of this:


  • 使用 MailItem.SentOnBehalfOfName ,其中仅在Exchange enviromnents工作(我想这是你的情况) - 当用户拥有发送为为其他权限Exchange邮箱,这是pretty很多同样的事情交换帐户。

  • 使用一个小的黑客工具,包括与的CommandBars
  • 摆弄
  • 使用的Outlook的救赎

  • (在OL2007,你会 MailItem.SendUsingAccount

  • use MailItem.SentOnBehalfOfName, which only works in Exchange enviromnents (I suppose that is the case for you) - when the user has "Send As" permissions for the other Exchange mailbox, this is pretty much the same thing as switching accounts.
  • use a small hack that involves fiddling with the CommandBars
  • use Outlook Redemption
  • (in OL2007, you would have MailItem.SendUsingAccount)

这篇关于展望自动化 - 更改发件人帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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