mailjet / mailjet-apiv3-nodejs

[API v3] Official Mailjet API v3 NodeJS wrapper
https://dev.mailjet.com
MIT License
236 stars 69 forks source link

Custom unsubscribe link #240

Closed luminous8 closed 1 year ago

luminous8 commented 1 year ago

Hi,

I need to generate a personalized unsubscribe email for transactional emails.

I'm doing this but it doesn't work const recipientsList = users.map((user) => { return { Email: user.email, Variables: { unsubscribeLink: 'https://domain.com/unsubscribe?email=${user.email}&id=${user.uniqueId}', }, }; });

And in my mjml file {{ unsubscribeLink }}

How can i achieve this?

Thanks

ai-wintermute commented 1 year ago

Hi @luminous8 did you see this article? I think it might help.

ai-wintermute commented 1 year ago

@luminous8 I'm going to close this ticket as it's not library-related. If you need any help on this you can contact Customer Assistant from your Mailjet account.