Re: [python-win32] Performing ReplyAll to outlook email message

2019-03-15 Thread Tim Roberts

Ahmed Matar via python-win32 wrote:


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

...

#what I would like to do now is do a “Reply all” with my reponse being 
“ResponseToEmail”



Any ideas if this is possible?


Sure, it's possible, but you have to do it all "the hard way". Create a 
new message, copy the Receipts list into the new message, set your body, 
send it.  Not a lot of code, but it's a little tedious.


--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.




smime.p7s
Description: S/MIME Cryptographic Signature
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


[python-win32] Performing ReplyAll to outlook email message

2019-03-15 Thread Ahmed Matar via python-win32
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?___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32