473,795 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing the message of Outlook inbox

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
Oct 8 '08 #1
4 5007
On Oct 8, 9:24*am, venutaurus...@g mail.com 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.

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/se...-using-python/
http://www.boddie.org.uk/python/COM.html
http://www.goldb.org/goldblog/Commen...0bdf1db69.aspx
http://mail.python.org/pipermail/pyt...er/006446.html

Mike
Oct 8 '08 #2
On Oct 8, 8:53*pm, Mike Driscoll <kyoso...@gmail .comwrote:
On Oct 8, 9:24*am, venutaurus...@g mail.com wrote:
Hi all,
* * * * How can I access the body of a mail in Outlook Inbox? Itried
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/se...er/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.
Oct 8 '08 #3
On Oct 8, 12:50*pm, venutaurus...@g mail.com wrote:
On Oct 8, 8:53*pm, Mike Driscoll <kyoso...@gmail .comwrote:
On Oct 8, 9:24*am, venutaurus...@g mail.com 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.
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/se...calendar-using...
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.
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
Oct 8 '08 #4
On Oct 9, 12:19*am, Mike Driscoll <kyoso...@gmail .comwrote:
On Oct 8, 12:50*pm, venutaurus...@g mail.com wrote:
On Oct 8, 8:53*pm, Mike Driscoll <kyoso...@gmail .comwrote:
On Oct 8, 9:24*am, venutaurus...@g mail.com 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.
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/se...calendar-using....
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.

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
hmm..... I tried posting it to the forum you have mentioned but still
in hunt of a solution.. :-|
Oct 10 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8229
by: KS | last post by:
Hi, I have creatd a custom Outlook form with a few custom form fields. When completed the form is sent to me and goes into my Inbox. This works fine. Now Iam trying to write some code in Access to import l;oop though my inbox and pick up all the usesr defined field data from any messages froma specific subject. I have have mixed and matched some code I found on the net however it doesn't seem to work properly. problems I face are:
1
4594
by: john bailo | last post by:
I am trying to write a c# program to access Outlook internet headers for messages in a public folder. When I look at these messages in Outlook, and select View/Options, there is information in the Internet Headers scrollbox. BUT -- when i run the Visual Basic code ( so far this is the only documented method I have found, so I'm converting it to c# ) found here: http://support.microsoft.com/?kbid=194870
0
1683
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in another window, the web page quietly refreshes in the background. Hosted in Outlook, the refresh causes Outlook to come to the front on every refresh. Or in XP, causes the toolbar icon to flash.
3
6048
by: John | last post by:
Hi I am trying to access outlook contacts folders and delete the contacts that do not contain a certain category value in the categories field. I have written the below code but am stuck with the error on the indicated line. Any help would be appreciated. Thanks Regards
7
6811
by: Dean Spencer | last post by:
Can anyone help? I am importing Emails from Outlook using the following code: Public Function ScanInbox(SubjectLine As String) Dim TempRst As Recordset Dim OlApp As Outlook.Application Dim Inbox As Outlook.MAPIFolder Dim InboxItems As Outlook.Items Dim Mailobject As Object Set OlApp = CreateObject("Outlook.Application")
0
1422
by: Fred Zuckerman | last post by:
Hello All, I'm trying to read my Outlook Inbox and add email addresses to an Access table. My code is below. It works fine except there doesn't seem to be a mailobject property for the senders email address. Can anyone help? Fred Zuckerman Private Sub btnScanInbox_Click() Dim rst As DAO.Recordset Dim OlApp As Outlook.Application
0
1398
by: piotrperak | last post by:
I asked it on Outlook group too, but maybe some of You had similiar problems. I am using CDO. Using it I was able to access Inbox and Sent Items of: Outlook 2003 from Windows app and Windows Service on WinXP Outlook 2000 only from Windows app on Win2000 When running Session.Logon as a service I receive ].
0
1269
by: =?Utf-8?B?UGF1bEg=?= | last post by:
Hi, I am writing an application which (on user request) scans the Outlook inbox for messages and other items which are relevant in the user defined context. There are several code examples showing how to do that, but they all assume that the Outlook inbox contains MailItems only. This is definitely not true, I have identified - so far - some 18 item types which might also be found in the Outlook inbox.
0
3462
by: davidiwharper | last post by:
Hello all I am trying to modify a CDO script that moves email messages out of a user's inbox and into a drop folder. I want to update it to use a Public Folder instead. The portion of the original script that matters is: ' URL used for Outlook Web Access strOWAURL = "http://servername/exchange/"
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.