mailersend-nodejs icon indicating copy to clipboard operation
mailersend-nodejs copied to clipboard

Cannot use variables in templates

Open barna-bash opened this issue 1 year ago • 3 comments

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

barna-bash avatar Sep 09 '24 17:09 barna-bash

Any updates on this Issue?

danilloestrela avatar Dec 09 '24 12:12 danilloestrela

This has broken a business use case!

jeyjeycodes avatar Jan 12 '25 18:01 jeyjeycodes

Unfortunately clients need to adopt those changes unless there are no official response from Mailersend. I assume they will not restore the simple personalisation in the nodeJS SDK since several official emails were sent from Mailersend team to clients to prepare to those changes but they have kindly delayed the go live date to 1st March 2025.

Mail from Mailersend about the change Mail about postponing the deadline

barna-bash avatar Jan 21 '25 20:01 barna-bash

Simple personalization using {$variable} has been deprecated and removed in MailerSend. Only Twig-style variables {{variable}} are supported for template personalization.

doobas avatar Apr 03 '25 09:04 doobas