Solved

How to launch default email client?

Posted on 2000-04-03
9
133 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
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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