mailersend / mailersend-nodejs

The official MailerSend Node.js SDK
https://developers.mailersend.com
MIT License
125 stars 17 forks source link

Cannot use variables in templates #94

Open 9barni3 opened 1 week ago

9barni3 commented 1 week ago

We have created a lot of templates with {$variable_name} syntax instead of {{personalisation_var_name}} by intetion which are not substituted now in delivered emails.

Since v2.3.0 - We cannot use variables either if I am replacing the setVariables() with the valid setPersonalisation() in my code. The {$variable_name} variables are not replaced with the provided personalisation. We need to change all our templates syntax vars to twig variable to make the substitutions work again. This would be complicated because we are using the same set of templates for multiple environments whichs may use different version of mailersend nodejs sdk.

The API instructions under any templates suggest to use variables for substitutions but this is not available in v2.4.0: image

I wonder why was the Simple Personalisation removed from the SDK and if you we can revert these changes?

Link to related PR