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
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
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)
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
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
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)