[英]Sending from a shared mailbox without using sentOnBehalfOf
I'm currently using outlook.application
to send mail from a shared mailbox. 我目前正在使用outlook.application
从共享邮箱发送邮件。
I need a way to send these messages without my email address appearing on the 'from' list. 我需要一种发送这些消息的方法,而我的电子邮件地址不会出现在“发件人”列表中。 It should only be the shared mailbox appearing. 它应该只是共享邮箱出现。 At the moment i'm using .sentOnBehalfOf
, is there something else i should be using? 目前我正在使用.sentOnBehalfOf
,我还应该使用其他东西吗?
Request Send As permission. 申请代理发送权限。
http://social.technet.microsoft.com/Forums/office/en-US/7fd3e945-092a-461b-afa9-a126b8cc3cdd/configure-outlook-to-send-as-permissions http://social.technet.microsoft.com/Forums/office/zh-CN/7fd3e945-092a-461b-afa9-a126b8cc3cdd/configure-outlook-to-send-as-permissions
You should be able choose the shared account in the From field of email. 您应该可以在电子邮件的“发件人”字段中选择共享帐户。
Use .SendUsingAccount to specify the shared account in VBA. 使用.SendUsingAccount在VBA中指定共享帐户。
http://www.rondebruin.nl/win/s1/outlook/account.htm http://www.rondebruin.nl/win/s1/outlook/account.htm
Sub Which_Account_Number()
'Don't forget to set a reference to Outlook in the VBA editor
Dim OutApp As Outlook.Application
Dim I As Long
Set OutApp = CreateObject("Outlook.Application")
For I = 1 To OutApp.Session.Accounts.Count
MsgBox OutApp.Session.Accounts.Item(I) & " : This is account number " & I
Next I
End Sub
The shared account will likely be 2. 共享帐户可能是2。
With OutMail
.SendUsingAccount = OutApp.Session.Accounts.Item(2)
End With
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.