?
Solved

getting outlook express e-mail messages

Posted on 2001-07-09
5
Medium Priority
?
232 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 800 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

762 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