DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Delphi: Send An Email Using The Shell

09.10.2008
| 4443 views |
  • submit to reddit
        This call allows you to send an email with a subject and a body. The limitation here is that attachments are not possible. Refer to my previous post for that ability through OLE.

This information was found <a href="http://delphi.about.com/od/windowsshellapi/a/executeprogram.htm">here</a>

uses ShellAPI
ShellExecute(0,'open','mailto:johndoe@hotmail.com?subject=HUD&body=Body',NIL, NIL, SW_SHOWNORMAL);