Hello,
I’m trying to schedule api workflows to send emails at certain times during a month, so i need to use lists as they are via a ‘do a search for’. I can’t use a element from a page.
So after reading this thread i found that nothing fit my scenario. I reached out to Sendgrid and they responded with this:
Whenever you’re passing HTML code to us such as the < br > , the replacement tag in the template needs to be added with 3 curly braces instead of 2.
Basically, you need to have
{{{content}}}
in the template itself and a parameter that will pass on the actual content. Normally, the content is passed with the "dynamic_template_data" object like so:```
"dynamic_template_data":
{
"content":"jim<br>bob</br> and so on in your case"
}
```
I think that will be done through the use of the PHP library, because it implies doing an API call and add the "dynamic_template_data" object.
_Please check out this documentation in order to get familiar with the syntax: https://sendgrid.com/docs/User_Guide/Transactional_Templates/Using_handlebars.html_
this didn’t work for me either. I actually couldn’t get ANY html to be rendered properly in emails.
Running out of avenues to look into here… has anyone figured this out?