Solved

getting outlook express e-mail messages

Posted on 2001-07-09
5
227 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
  • 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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