Accessing the message of Outlook inbox

V

venutaurus539

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.

Any help is appreciated.

Thanks in advance,
Venu
 
M

Mike Driscoll

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.

Any help is appreciated.

Thanks in advance,
Venu

Can you connect via POP3? If so, the email module should be able to
get it. Otherwise, you'll probably have to use the PyWin32 package's
win32com module.

Google is your friend. The following links should give you a general
idea of how to access Outlook with Python:

http://cephas.net/blog/2004/09/17/sending-your-outlook-calendar-using-python/
http://www.boddie.org.uk/python/COM.html
http://www.goldb.org/goldblog/CommentView,guid,dcd1d9cd-eb1b-4590-a14b-1480bdf1db69.aspx
http://mail.python.org/pipermail/python-win32/2007-November/006446.html

Mike
 
V

venutaurus539

Can you connect via POP3? If so, the email module should be able to
get it. Otherwise, you'll probably have to use the PyWin32 package's
win32com module.

Google is your friend. The following links should give you a general
idea of how to access Outlook with Python:

http://cephas.net/blog/2004/09/17/s...ermail/python-win32/2007-November/006446.html

Mike

Thanks Mike for your suggestion.. I am using PyWin32 package's Win32
module... I did go through those mails,, and am able to access the
Outlook inbox as they have mentioned.. but am not getting the exact
function with which I can refer the mails content ( Message of the
Body)... :-(

THank you,,
Venu.
 
M

Mike Driscoll

Thanks Mike for your suggestion.. I am using PyWin32 package's Win32
module... I did go through those mails,, and am able to access the
Outlook inbox as they have mentioned.. but am not getting the exact
function with which I can refer the mails content ( Message of the
Body)... :-(

THank you,,
Venu.

Our organization no longer uses Outlook, so I don't have a good way to
test any more. I recommend re-posting to the pywin32 group here:
http://mail.python.org/mailman/listinfo/python-win32

They'll be able to give you pointers and there's plenty of helpful
people there.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top