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"
感謝,