JCL Help:JclSimpleSendMail

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Sends an email to a recipient.


Pascal

 function JclSimpleSendMail(const Recipient: AnsiString; const Name: AnsiString; const Subject: AnsiString; const Body: AnsiString; const Attachment: TFileName = ; ShowDialog: Boolean = True; ParentWND: THandle = 0; const ProfileName: AnsiString = ; const Password: AnsiString = ): Boolean;


Parameters

Parameters Description
ShowDialog: Boolean = True Set to True if a dialog should be shown (default to True).
ARecipient Address of the recipient.
AName Name of the recipient (can be left empty).
ASubject Subject of the message.
ABody Body of the message.
AAttachment Filename of attachment (optional).
AParentWND If non-zero it should be the handle of the main window of your application. In that case, any MAPI dialogs are shown modal. If left 0, MAPI dialogs are not shown modal.


Return Value

If the message was successfully handed over to the MAPI client, the function returns True, otherwise it returns False.


Description

JclSimpleSendMail sends an e-mail with optionally an attachment to 1 recipient.


About

Unit

JclMapi


Donator

Petr Vones


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page