Search code examples
handlebars.jssendgrid

SendGrid Dynamic Templates - get recipient email in handlebars


In my SendGrid dynamic template, I need to get the recipient email and pass it in the URL. Is there any way I can the recipient email from some sort of global/default variables, or I will need to pass it with the payload?


Solution

  • You need to pass all the data that you want to use within the body of an email template in the dynamic template data.