We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Hi @kzokjit
Please don't use '-' in your params. You can use '_' like activation_link or any other format (eg: camelCase). It should work then.
Thanks
Sorry, something went wrong.
Thanks for the answer. True sendinblue support replied to it
No branches or pull requests
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
Please advice
The text was updated successfully, but these errors were encountered: