Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching Default Email Client in Delphi With ShellExecute

Status
Not open for further replies.

premiK

Programmer
Jan 8, 2002
22
CA
Hello ,

I try to open the e-mail through my Delphi application.
It works fine if my default mail is MicrosoftOutlook , it just open
e-mail composer only.
If my default mail is netscape(version 4.79) the Netscape browser and
two e-mail composer also open, if it is netscape(version 7.0) the
Netscape browser and one e-mail composer also open. If the netscape
browser is already opened in my desktop before I run my application the
application open only one e-mail composer, in this case it work fine.
I want to open only one e-mail composer with any circumstance.

Here is my sample code,
var
command:string;
.
.
Command := 'mailto:tata@yourmail.com?subject='+'Test';
ShellExecute(0, nil, PChar(Command), nil, nil, SW_SHOWNORMAL);

Can any one help me?
Thank you very much.

Premi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top