Solved

getting outlook express e-mail messages

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
proper way to parse text with delphi 7 88
Delphi - replicating a form 8 57
Delphi Form ownership 4 54
Dev Express grid collapse 2 34
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now