Board index » delphi » Email link

Email link

How do I make an email address display as an email link. ie just click on it
and the email program fires up.

Thanks in advance.

 

Re:Email link


You can do this with a label easily. Just add a label to your form, set
the font color to crBlue, set the cursor to crHandPoint, then put this
in the label's OnClick event:

ShellExecute(0,'open',PChar('mailto:u...@host.com'),'','',0);

I think you also need to add ShellAPI to your uses clause.

Quote
stevew wrote:

> How do I make an email address display as an email link. ie just click on it
> and the email program fires up.

> Thanks in advance.

--
--------------------------------------
Pirch resources
--
http://pirchworld.com
--------------------------------------

Other Threads