'Mailjet API: how to add template parameters?
I use the Mailjet API PHP library. And I want to send an email with a template.
How can I add template parameters to my function sendEmail
?
Thanks
Solution 1:[1]
Template parameters can not be added in the function "sendEmail". However, you can add template parameters using the function "send". Please note that it requires JSON payload. See here: https://github.com/mailjet/mailjet-apiv3-php-simple/blob/master/doc/_send-api.md#sending-a-basic-email
Also, please note that the wrapper you use mailjet-apiv3-php-simple is considered deprecated and is on maintenance only. We strongly advise you to consider implementing our new PHP wrapper.
P.S. Question linked to Github issue - https://github.com/mailjet/mailjet-apiv3-php-simple/issues/130
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Zhivko |