Solved

How to launch default email client?

Posted on 2000-04-03
9
135 Views
Last Modified: 2010-04-04
I am writing a program, it generate
a report at c:\temp\myreport.htm,
how to launch user's default email
client and automatically attach it when
user press a button?

Thanks

Shekou
0
Comment
Question by:shekou
[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
  • 4
  • 3
  • 2
9 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 100 total points
ID: 2679417
Try this app from Simonet AKA Alex (source included):

http://www.bhnet.com.br/~simonet/archive/mapimail.zip
0
 
LVL 15

Expert Comment

by:simonet
ID: 2679625
>Simonet AKA Alex

I guess it's the other way around, Epsylon!
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2680598
I think both ways are right...
0
Industry Leaders: 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:shekou
ID: 2682781
Is there any simple way use shellexecute
to implement that?

Rgds

Shekou
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2682894
Not when you want to attach files.
0
 

Author Comment

by:shekou
ID: 2683087
Find  a command like this:
ShellExecute( 0, 'Open', PChar('mailto:somebody@somewhere.com?Subject=Hey!&body=Test ), nil, nil, SW_SHOWNORMAL )
It seems could use ?Subject and &body automatically fill Subject and body field, which parameter used for attachement?

Rgds

Shekou
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2683830
Like I said, you can't use attachments this way...
0
 
LVL 15

Expert Comment

by:simonet
ID: 2685859
Epsylon is right.

By using ShellExecute you cannot attach files to the e-mail.  Only by handling MapiSendMail directly you can attach files.

shekou, please read the question again.

Alex
0
 

Author Comment

by:shekou
ID: 2686407
OK, thanks, I tried MAPISendmail, it
works.

Rgds

Shekou
0

Featured Post

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!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 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