Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2002, 08:50 AM
DelUS DelUS is offline
Senior Member
 
Join Date: Jan 2001
Posts: 105
Default Email link?

Hi All,

How can i create an email link in my delphi application?
i know how to create a website link using shellexecute api.

while clikcing on the email link i need to open outlook express with the email address as to address.

Thanks in Advance
Jomon
Reply With Quote
  #2  
Old 01-09-2002, 09:20 AM
Ted On The NeT Ted On The NeT is offline
Senior Member
 
Join Date: Apr 2001
Posts: 2,182
Default RE: Email link?

Here you go:


///// CODE STARTS HERE

Var TheString: String;

ShellExecute(Application.Handle, 'open', PChar(TheString), nil, nil, SW_SHOWNORMAL)

ShellExecute(Application.Handle, 'open', PChar('mailto:' + TheString), nil, nil, SW_SHOWNORMAL)

///// CODE STARTS HERE

IMPORTANT: ADD ShellAPI to your uses clause.

hope you're helped.

Regards,
Ted


================================================== ========
PS: don't forget to accept this reply if it helped you!
================================================== ========
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 02:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.