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")
    f.write(message.Body+"\n\n\n")

                  Hope you could get some idea based on this..

Thanks in Advance,,
Venu.


On Thu, Oct 9, 2008 at 10:07 PM, Tim Roberts <[EMAIL PROTECTED]> wrote:

> 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 to Outlook,
> and the solution depends on what you used.
>
> --
> Tim Roberts, [EMAIL PROTECTED]
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to