[python-win32] Pywin32 outlook email organizer

Tim Roberts timr at probo.com
Wed Jan 31 16:13:13 EST 2018


Samantha Mait wrote:
>
>  
>
> I am reaching out as I am trying to use the pywin32 package for python
> 2.7 to automate sending an outlook calendar invite. The package is
> awesome and is able to do everything I would like except for one
> piece. I am trying to send the email from a separate email address. Is
> there any way that I can do this?
>
>  
>
> Ideally, I would like the email to be able to generate the script on
> my computer, but have the sender be someone else like you can do in
> python’s email package via sendmail(from_addresss, [to_address],
> msg.as_string()).
>

Remember that Python is just a gateway into Outlook.  You can't do
anything that Outlook wouldn't ordinarily do, and Outlook doesn't allow
you to override the sender address.  You can set up multiple identities
in Outlook, and then use Python to choose which identity to use when
sending.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list