?
Solved

How to launch default email client?

Posted on 2000-04-03
9
Medium Priority
?
136 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 300 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
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.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 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