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, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to