Questions related to SendGrid's templating engine, it's usage, API, etc. Also includes transactional templates.
Questions tagged [sendgrid-templates]
155 questions
1
vote
1 answer
Sendgrid substitution works only for the first recipient
I am using Sendgrid to send emails with templates that contain multiple variables.
Everything works well when I have only one recipient for an email.
When I have multiple recipients either in To or one in To and one in Cc, the first email is ok but…

PMerlet
- 2,568
- 4
- 23
- 39
1
vote
1 answer
How to substitute Sendgrid template variables? (in C#)
I defined a variable <%datetime%> in my SendGrid template. I decided by this naming convention to follow the already placed <%subject%> of the subject line. I see different variable naming conventions in the examples:…

Csaba Toth
- 10,021
- 5
- 75
- 121
0
votes
0 answers
Unable to submit an HTML embedded form in email from Outlook
I've created the following Dynamic Template on Sendgrid:

Shashank Shukla
- 23
- 4
0
votes
0 answers
SendGrid renders nothing when the template has "each" in "greaterThan"
I have a SendGrid's dynamic template with "each" in "greaterThan" like this:
{{#greaterThan (length users) 0}}
not empty
{{#each users}}{{this.name}}
{{/each}} {{/greaterThan}} Expected behavior is that I…
mythosil
- 273
- 1
- 9
0
votes
0 answers
How to send Personalized Attachments via Sendgrid Dynamic Template?
I need to send diffrent attachments to diffrent email ids , the emails will have dynamic content so i am using Dynamic template.
Personlizations request does not attachments.
Does anyone know how to send Personalized Attachments via Sendgrid Dynamic…

pyprogrammer
- 1
- 1
0
votes
0 answers
How send massive emails to different recipients and with different content message
Edit the question with more details, I am trying to send the following sendgridMessage, the content that changes is inside the personalizations property, as well as what specific email it will be sent to, with the content that is expected to be sent…

Jonathan G
- 119
- 3
0
votes
1 answer
sendgrid how to render array item dynamic templates
how to render array item:
How to render first 2 array items in 1 column and next 2 in next column
2 issues:
1.how to render array item:
data:
companies: ["company1", " company2", "company3", "company 4"]
html:
{{ companies.[1]}} not…

Becki Ari
- 15
- 3
0
votes
1 answer
Send grid trimmed message for a link
when I create a html code for send with php to an email with SendGrid and I add a link like aquí the email arrives with the text [Trimmed message] View entire message and I don't know how can I delete this message from my emails send with html and…
0
votes
1 answer
Authorization required for filter messages by ID
I'm trying to use the sendgrid api to filter messages based on ID. I have the following code:
try {
client.setApiKey(process.env.SendGridKey);
const request = {
url: `/v3/messages/${req.params.mail_id}`,
method: "GET",
};
…

rjjdv
- 339
- 1
- 3
- 12
0
votes
1 answer
Advanced Conditional Logic in Sendgrid Dynamic Templates
We are looking to populate information based on the data sent to SendGrid using dynamic content in dynamic templates.
We are sending transactional data to SendGrid to populate information in the dynamic template and I am looking to configure a rule…
0
votes
0 answers
SendGrid template not respecting outlook beta in Mac
I've been trying to modify my template but I'm running into some issues when it comes to using columns on SendGrid. The main issue is when the email when a user views an email from a mac with outlook desktop in beta.
Everything works fine in terms…

Shootex
- 1
- 1
0
votes
0 answers
Handlebars {{#with (lookup)}} not working in dynamic template
I'm currently trying to set up a dynamic template on sendgrid to inform participants, that signed up for an event, about their group allocation. For this I'm providing the following JSON
{
"name": "TestEvent",
"date": "2023-03-06",
…
0
votes
0 answers
Migration of Exchange environment from On Prem to sendgrid Azure
As cloud first approach, we are trying to migrate our on prem mail servers to Azure Sendgrid(We are not planning for O365 as of now for these email domains as of now). Can this be possible with Sendgrid SAAS?

budhaditya baneerjee
- 11
- 3
0
votes
1 answer
How to provide dynamic_template_data without hardcoding it?
TLDR; How do I fetch my dynamic_template_data from an API call instead of hardcoding it? I am using the node.js implementation.
I am following the How to send email with dynamic templates guide.
According to the docs...
In order to send dynamic…

Pajama_Jeans
- 49
- 4
0
votes
0 answers
Emails are failing when I use FormatDate in Sendgrid
I am trying to get the format as "MMMM DD, YYYY" but when I use
{{ FormatDate this.value "MMMM DD,YYYY" }}
it works on preview but the Emails were undelivered.
When I use,
{{this.value}}
same template works!! need guidance on this!!