Home / Subscriber / sendTransactionalEmail

Subscriber ‐ sendTransactionalEmail


Description:

Send a transactional email to a specified email address

Example:

You should call this function as followed:
- rest/v2/subscriber/sendtransactionalemail?token=TOKEN&database=DATABASE_ID
&mail=MAIL_ID&email=EMAIL&sysname=SYSNAME&search[]=FIELD_NAME&search[]=FIELD_NAME
&replace[]=REPLACE_VALUE&replace[]=REPLACE_VALUE

                require_once 'Rest.php';

                $username = 'my_username';
                $password = 'my_password';
                $database = '999';

                $rest = new Rest($username, $password, $database);
                $result = $rest->call('subscriber/sendTransactionalEmail', [
                	'database' => 'DATABASE_ID',
'mail' => 'MAIL_ID',
'email' => 'EMAIL',
'sysname' => 'SYSNAME',
'search' => [
'FIELD_NAME',
'FIELD_NAME'
],
'replace' => [
'REPLACE_VALUE',
'REPLACE_VALUE'
] ], 'GET'); var_dump($result);

Parameters:

The following parameters are valid for this call

key: mail
values: integer, required
what: The ID of the mail

key: email
values: string, required
what: The email address of the receiver

key: sysname
values: string [a-z0-9 _@-], required
what: The name of the group, all statistics will be grouped into

key: search
values: array, not required
what: the fields to replace

key: replace
values: array, not required
what: the values to replace with

See:

The following items:
- user/login For the TOKEN.
- user/database For the DATABASE_ID