programmatically send outlook email from shared mailbox

前端 未结 2 527
忘了有多久
忘了有多久 2021-01-13 13:06

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

相关标签:
2条回答
  • 2021-01-13 13:47

    Added this right before the newMail.send() step and it worked

    newMail.SentOnBehalfOfName = 'SharedFolder'
    
    0 讨论(0)
  • 2021-01-13 13:54

    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.

    0 讨论(0)
提交回复
热议问题