Document toolboxDocument toolbox

Sending a System Message

sendSystemMessage

A system message can be sent from Custom Logic using the following format:

bool sendSystemMessage( string $subject, string $body, int $recipient, string $identifier )

Parameters

$subject The subject of the message.
$body The body Content of the message.
$recipient The CONTACTS RECID that the message will be sent to.
$identifier A descriptive identifier that will be included at the end of the message.

Return Values

Returns TRUE or FALSE.

Example:

$result = $this->sendSystemMessage( 'Test Message', 'This is a System Message generated from custom logic', 123, 'Example Message' );

Output:

image-20240912-151839.png