[python-win32] Performing ReplyAll to outlook email message

Ahmed Matar ahmedmatar at me.com
Fri Mar 15 09:25:16 EDT 2019


Hi,

I am trying to perform a reply all to an email message that I have passed into my python script.

import win32com.client
 
__OUTLOOK = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
__MSG = __OUTLOOK.OpenSharedItem(sys.argv[1])
 
emailBody = __MSG.Body
print(emailBody)
responseToEmail = “Hi, thanks for your email, I have received it”
 
#what I would like to do now is do a “Reply all” with my reponse being “ResponseToEmail”

Any ideas if this is possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190315/35b178c7/attachment.html>


More information about the python-win32 mailing list