Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-16 Thread venu madhav
Hi all,As of now I got access to the text of the message. Now if I want to access the sender address and the receiver address of a mail how can I do that? I tried giving message.To and message.From both of which didn't work.. :-(. I tried searching in Google for them but couldn't come out

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-16 Thread Tim Roberts
venu madhav wrote: Hi all, As of now I got access to the text of the message. Now if I want to access the sender address and the receiver address of a mail how can I do that? I tried giving message.To and message.From both of which didn't work.. :-(. I tried searching in Google for

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-10 Thread Tim Roberts
venu madhav wrote: Here is the code: rom win32com.client import Dispatch session = Dispatch(MAPI.session) session.Logon('outlook') # MAPI profile name inbox = session.Inbox for i in range(inbox.Messages.Count): message = inbox.Messages.Item(i + 1) f.write(message.Subject+\n\n)

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-09 Thread Tim Golden
venu madhav wrote: Hi all, How can I access the body of a mail in Outlook Inbox? I tried various options like message.Body or message.Mesg etc. but didn't work. I could get the subject of the mail using message.Subject though. If you haven't already, check out this page, which will get

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-09 Thread Tim Roberts
venu madhav wrote: Hi all, How can I access the body of a mail in Outlook Inbox? I tried various options like message.Body or message.Mesg etc. but didn't work. I could get the subject of the mail using message.Subject though. Show us the code you used. There are several ways to get

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-09 Thread venu madhav
Here is the code: rom win32com.client import Dispatch session = Dispatch(MAPI.session) session.Logon('outlook') # MAPI profile name inbox = session.Inbox for i in range(inbox.Messages.Count): message = inbox.Messages.Item(i + 1) f.write(message.Subject+\n\n)