问题
I want to send a letter via Outlook (using Excel VBA).
I need it to be from the department mailbox.
Current code looks like this:
Dim Outlookwindow As Outlook.Application
Dim NewLetter As Outlook.MailItem
Set Outlookwindow = New Outlook.Application
Set NewLetter = Outlookwindow .CreateItem(olMailItem)
With NewLetter
.BodyFormat = olFormatHTML
.Display
.HTMLBody = "Stuff and more stuff"
.To = "people"
.CC = "more people"
.Subject = "About stuff"
.Send
End With
Is there a way to send from the department and not my personal mailbox? Maybe something like .From
exists?
来源:https://stackoverflow.com/questions/64715131/sending-letter-from-a-specific-mailbox