I\'m trying to send an email with python from a shared mailbox.
I have been able to sucessfuly send it through my own email, but sending one with a shared mailbox (t
Added this right before the newMail.send()
step and it worked
newMail.SentOnBehalfOfName = 'SharedFolder'
In case if you have multiple accounts configured in Outlook you may use the SendUsingAccount property of the MailItem class. Or if you have sufficient privileges (rights) you may consider using the SentOnBehalfOfName property which is a string indicating the display name for the intended sender of the mail message.