'changing name of mail sender outlook.CreateItem(0)
I want to change the name of the mail sender, something like mail.From 'some name <[email protected]>'
I know that I can set a mail with
mail.SendUsingAccount='[email protected]'
but I want to add name to it
mail.SendUsingAccount= 'some name' '[email protected]'
this is what I have so far
outlook = win32.Dispatch('outlook.application')
mail = outlook.CreateItem(0)
mail.To = mailList
mail.Subject = 'Test'
mail.HTMLBody = 'Test'
mail.Send()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
