Choosing "From" field using python win32com outlook -


i trying automate emails using python. unfortunately, network administrators @ work have blocked smtp relay, cannot use approach send emails (they addressed externally).

i therefore using win32com automatically send these emails via outlook. working fine except 1 thing. want choose "from" field within python code, cannot figure out how this.

any insight appreciated.

if configured separate pop3/smtp account, set mailitem.sendusingaccount property account namespace.accounts colelction.

if sending on behalf of exchange user, set mailitem.sentonbehalfofname property


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -