/
Sending a System Message

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

 

Related content

Validation: Errors and Warnings
Validation: Errors and Warnings
More like this
Creating Inbound/Outbound Files
Creating Inbound/Outbound Files
Read with this
(2024.2) Sending a System Message
(2024.2) Sending a System Message
More like this
Querying Data
Querying Data
Read with this
(2024.2) Validation: Errors and Warnings
(2024.2) Validation: Errors and Warnings
More like this
Calling Custom Events
Calling Custom Events
Read with this