Solved

getting outlook express e-mail messages

Posted on 2001-07-09
5
230 Views
Last Modified: 2010-04-06
is there any way in which i can view my e-mails that are sent to outlook WITHOUT opening Outlook?

IF SO COULD SOME PLEASE PROVIDE AN EXAMPLE/SOURCE as to how this can be done!


cheers
0
Comment
Question by:nod31
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 6267046
hi,
not using outlook express it doesnt support automation.
if you use like outlook97/outlook2000 then it can be done.
0
 

Author Comment

by:nod31
ID: 6269419
i am using outlook 2000!!!
0
 
LVL 17

Expert Comment

by:inthe
ID: 6271513
>>i am using outlook 2000!!!

hey why the shouting ??
your question says

getting "outlook express" e-mail messages"

well anyways for example to show the inbox :

uses comobj;

procedure TForm1.Button1Click(Sender: TObject);
var
  outlook,namespace,folder : variant;
 const olFolderInbox = $00000006;
begin
 try
   Outlook := GetActiveOleObject('Outlook.Application');
  except on exception do
    Outlook := CreateOleObject('Word.Application');
  end;
  NameSpace := Outlook.GetNamespace('MAPI');
  NameSpace.Logon('', '', False, False);
  Folder := NameSpace.GetDefaultFolder(olFolderInbox);
  Folder.Display;
end;


because of the many version of delphi and outlook differences it will be better for you to read as much here
http://www.djpate.freeserve.co.uk/AutoOutl.htm
as possible and some from the links if relevent and see the sample at bottom of page
http://www.djpate.freeserve.co.uk/D5Outlook.zip
this sample shows how to iterate through contacts so you can modify to iterate through mailitems of inbox.
0
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 6271516
these are other interesting ways to connect to it:

connect to outlook like if it were a dataset:
http://homepages.borland.com/torry/vcl/system/appscommunications/outltb.zip
By Lothar Perr. Component to connect Delphi Applications to MS-Outlook 97 and 2000 (including the Mails,
Contact list, Notes, Apointments, Command bars Items..). Sample Included.
 
Fully functional
Source: Included
Exe-demo included

Here is another example of a TOutlookDataset that lets you browse the mail only...
http://chlichti.home.mindspring.com/html/outlookds.html
0
 

Author Comment

by:nod31
ID: 6282197
sorry for delay :-(
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question