Solved

start outlook from within my application

Posted on 1998-12-22
6
141 Views
Last Modified: 2010-04-04
How can I startup Outlook from within my delphi3 application, for example to send a message?
0
Comment
Question by:dummyy
[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
6 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 50 total points
ID: 1352469
ShellExecute(0, 'open', 'Outlook.exe', nil, nil, SW_SHOWNORMAL);

-Viktor
--Ivanov
0
 

Expert Comment

by:Tulip
ID: 1352470
You can better use the TEmail component.
It directly uses MAPI functions so that you can compose messages within your
Delphi app and you don't have to start Outlook first.
For details, see the example included in the zip-file.

http://www.torry.ru/vcl/internet/temail2.zip
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1352471
To start a default e-mailer you use this...

ShellExecute(0, 'open', 'mailto:viktor@megsinet.net', nil, nil, SW_SHOWNORMAL);

I think that if you use this following
ShellExecute(0, 'open', 'mailto:viktor@megsinet.net', 'Your Subject', nil, SW_SHOWNORMAL);
you can include your subject for the maill...

-Viktor
--Ivanov
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dummyy
ID: 1352472
Your answer is correct but while trying to implement it, Delphi couldn't find the shell32.lib. Meanwhile I've got an answer from Tulip which seems more prefarable. Thanks anyway for answering my question.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1352473
It couldn't find it because you didn't include it... I'm sorry for forgetting to tell you that you need to include it...

uses ...., ShellAPI;

as you can see you need to add ShellAPI to your uses clause... Hope this helps...

Cheers,
Viktor
0
 

Author Comment

by:dummyy
ID: 1352474
Thanks, it's completely correct, I was looking for shell32.lib and couldn't find it. I guessed already that it should be something like you mentioned. Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 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