2013-04-04 24 views
0

我想从我的帐户中使用VBA发送电子邮件,但似乎是从其他用户发送的。有没有办法使用Sentonbehalfofname,这样你就可以在没有访问权限的情况下包含任何你想要的文本字符串?可以在Sentonbehalfofname中使用文本字符串吗?

Set outlookapp = CreateObject("outlook.application") 
msg = "Enter Message here" 
subject = "Enter subject here" 
Set item = outlookapp.createitem(0) 

With item 
.Sentonbehalfofname = "Yogi Bear" 

感谢,

回答

0

没有,Exchange Server将名称解析为一个邮箱,并检查是否有代表该邮箱发送的权利。

如果您使用SMTP服务器,您可能可以指定任意名称,但只适用于某些SMTP服务器,它不适用于Exchange。

相关问题