• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1656
  • Last Modified:

Delphi 7 :: Import Outlook Express and MS Outlook Accounts

Dear Experts,

Does anyone know how to import Outlook Express and MS Outlook email accounts into a Delphi 7 application?
0
Marius0188
Asked:
Marius0188
  • 5
  • 4
1 Solution
 
Tomas Helgi JohannssonCommented:
  Hi!

Use OLE to connect to Outlook and retrieve the Accounts from there.
Take a look at these links on how to do this:
http://www.djpate.freeserve.co.uk/AutoOutl.htm
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_21783499.html
http://www.swissdelphicenter.ch/torry/showcode.php?id=897

Regards,
    Tomas Helgi
0
 
Marius0188Author Commented:
What about Outlook Express?
I would also like to retrieve all account details for OE.

Thanks.
0
 
Tomas Helgi JohannssonCommented:
That is the same. The only difference is in the initilal connection to the application.

Regards,
   Tomas Helgi
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Marius0188Author Commented:
I don't see any examples of how to get the accounts.
I don't want to get the:
"Contacts", "Unsent Messages", "Unread Messages" etc...
Later I will be using them but now I need a clear example of how to get the email accounts that is set up in MS Outlook and Outlook Express.

Thanks in advance.
0
 
Tomas Helgi JohannssonCommented:
Take a look at the Outlook Object Model and related info.
http://msdn2.microsoft.com/en-us/library/aa221870(office.11).aspx

Regards,
  Tomas Helgi
0
 
Marius0188Author Commented:
The situation I am in now does not allow me to really study the entire topic of COM programming.
I have very little knowledge in that field and needs a ligthing fast solution to do this.
Can someone please provide me with code example, I also learn faster this way.

I will be studying the resources you pointed out to me but unfortunately I can not now.

I am reminding myself of a way to get this by using the registry.
Can someone please confirm and furnish me with more details.

Thanks for the help.
0
 
Tomas Helgi JohannssonCommented:
Here is an example
http://www.torry.net/vcl/system/appscommunications/outltb.zip
Look for the CurrentUser in the Unit1.pas and also take a look at the
Outlook Object Model.
More info to look at:  http://support.microsoft.com/kb/263572

Regards,
   Tomas Helgi
0
 
Marius0188Author Commented:
Hi Tomas,

I have downloaded the demo project but when trying to open it in Delphi 7 I receive "TOutlookConnect class missing". Where can I find this component?

Please advise.
0
 
Tomas Helgi JohannssonCommented:
The component is in the file OutlookTools.pas which is included in the zip-file.
Either include the file in the search path or compile the class into Delphi before
running the project.

Regards,
   Tomas Helgi
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now