[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

getting outlook express e-mail messages

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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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