-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Description
I followed the documentation and followed the php api but i m not able to send the param to the template.
I have defined it {{params.activation-link}} but always return zero
Check php code below
$instance = $this->transactionalEmailsApi();
$sendSmtpEmail = new \SendinBlue\Client\Model\SendSmtpEmail();
$sendSmtpEmail['subject'] = 'Registration';
$sendSmtpEmail['sender'] = array(
'name' => $this->senderName,
'email' => $this->senderEmail);
$sendSmtpEmail['to'] = array(
$params
);
$sendSmtpEmail['templateId'] = 4;
$sendSmtpEmail['replyTo'] = array('email' => $this->replyTo, 'name' => $this->senderName);
$param['activation-link'] = 'testing link';
$sendSmtpEmail['params'] = $param;
try {
$result = $instance->sendTransacEmail($sendSmtpEmail);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->getAccount: ', $e->getMessage(), PHP_EOL;
}
Please advice
Metadata
Metadata
Assignees
Labels
No labels