how to forward an email after adding text with outlook/python? -


i'm trying open email add text , forward using python windows extensions.

this have:

import win32com.client  outlook = win32com.client.dispatch("outlook.application").getnamespace("mapi")   inbox = outlook.getdefaultfolder(6).folders('subfolder') messages = inbox.items message = messages.getlast() newmsg = message.forward newmsg.to = "email@email.com" #i want forward address 

here when try last line:

attributeerror: 'instancemethod' object has no attribute 'to' 

i know how open message, add own text, , forward somewhere else? i'd prefer if have option of having display message in outlook before sending it.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -