I have a macro in outlook that sends out email on its own using my personal email addres. But I have another email which I have "send as" permission to, and want the macro to use that email address to send out emails. In the macro i have objmail.to, objectmail.cc and objmail.bcc but i don't have objmail.from to hardcode the send email address. Is there anyway I can accomplish this.
If ChkResolved = True Then
If ChkEnglish = True Then
If ChkLan = True Then
objMail.To = "xxxx@test.com"
objMail.Body = "Test" & vbNewLine & vbNewLine & Signature
End If
End If
End If
你必须去 mailitem.SentOnBehalfOfName 并将其作为字符串放入 Outlook 中显示的邮箱名称
如果您使用的是 Outlook 2007 或更高版本,则MailItem.SendUsingAccount属性提供此功能。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.