programmatically send outlook email from shared mailbox

前端 未结 2 542
忘了有多久
忘了有多久 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'
    

提交回复
热议问题