Mega Code Archive

 
Categories / Delphi / Examples
 

Send email from delphi

It can be so easy to have your application pop up an email window.. assuming that a mail reader is installed (see below): (Thanks to Kevin for improving the code with the body= parameter.) uses ShellAPI; begin ShellExecute(0,'open','mailto: peter@preview.org?subject=my subject&body=my message text', NIL, NIL, SW_SHOWNORMAL); end