Questions related to SendGrid's templating engine, it's usage, API, etc. Also includes transactional templates.
Questions tagged [sendgrid-templates]
155 questions
5
votes
2 answers
Sendgrid v3: "Substitutions may not be used with dynamic templating"
I am trying to update my API Code from Sendgrid v2, to the actual Sendgrid v3, so my code used to look like this:
public void sendCreatedUserEmail(User user) {
Email from = new Email(FROM);
from.setName(EMAIL_NAME);
String subject =…

BenG
- 51
- 1
- 3
5
votes
1 answer
Trigger sendgrid template email using meteor
I am using sendgrid to send an email. I want to send template as an email to users. Below code is just sending the simple text based email instead of defining the headers part and using the template id.
if (Meteor.isServer) {
Email.send({
…

Abid Iqbal
- 753
- 8
- 22
4
votes
0 answers
Sendgrid - Organize Email Templates with Folders
I have created a few custom email templates on Sendgrid. In order to easily manage them, I want to use folders to group the related templates so that they're not mixed up. Is there a way to accomplish this?

Sunday Ezeilo
- 175
- 1
- 10
4
votes
1 answer
View stats for sendgrid dynamic templates
I am using sendgrid to send transactional emails (dynamic templates) but can't figure out how to view the stats of emails opened, delivered etc. Is there a way GUI or API that I can use to view stats on my transactional emails?

Jeremy Cal
- 413
- 3
- 16
4
votes
2 answers
Not receiving email from SendGrid
Using Sendgrid, Node.js and Firebase cloud functions, I was able to send emails via http. For the past few days my emails just weren't coming through anymore. I haven't really changed my code much so I have no idea whats causing the emails not to be…

Zafiera Davids
- 221
- 1
- 2
- 13
4
votes
1 answer
Can I work around that substitutions are limited to 10000 bytes per personalization block in SendGrid?
I'm trying to send an email with SendGrid using a transaction template. It is an order confirmation to a customer where I would like to show some basic information about the order together with a list of ordered articles.
Since SendGrid does not…

David
- 581
- 6
- 15
4
votes
1 answer
SendGrid Emails are Blank when Replying or Forwarding
When forwarding our Campaign emails, we noticed that the email content that we received from SendGrid is blank when we forward or reply.
We've had multiple people look at this, and it happens in both Outlook and Gmail. The content itself is missing…

Mark Berry
- 124
- 10
4
votes
1 answer
Sending e-mail with SendGrid is not working with css style
I have a simple HTML code to send to a certain e-mail using C# API Sendgrid and Templates :
And when I try to see the preview of it looks as I expected :
But when the E-mail is delivered it doesn't recognize the "style" or any css code..
This is…
user3796130
3
votes
1 answer
How do I send a Sendgrid email using a template and add custom data for the template?
I can send a simple email, I can also send emails using a specific template w/ the TemplateId like the example below, but
QUESTION - How do I send this template below and add or include handlebar data (ex. {"name":"Mike", "url":"some_url",…

chuckd
- 13,460
- 29
- 152
- 331
3
votes
3 answers
How do I specify dynamic template's version when calling v3 api?
I assume dynamic template's version is to specify the template's id and version when sending the email. How do I specify dynamic template's version when calling v3 api? I'm using c# client library.

frosty
- 2,421
- 6
- 26
- 47
3
votes
1 answer
Is there a way to format a number/currency in a sendgrid email template
If I pass a numeric value to a SendGrid dynamic template, is there any way of formatting the value?
ie, if I pass the following object to the templating engine:
{
"value": 8.7
}
is there a way to format it, say, to 2 dp?
{{format value $0.00}}…

evorgevol
- 93
- 7
3
votes
0 answers
how can i get the rendered template, with the dynamic parameters embedded, from Sendgrid response?
I'm using SendGrid API v3 with Node.js
I send emails thru the API, with my custom templates and dynamic parameters embedded.
I want to get the email HTML content from SendGrid as a result, with the parameters I passed, so I can save it.
how can I do…

ggcarmi
- 458
- 4
- 17
3
votes
1 answer
SendGrid dynamic template contains empty data - .NET Core
I am trying to send an email with a specific dynamic template and data. Email is successfully sent but contains empty data. The handle method is part of Azure Function. Recently I've changed Newtonsoft JSON to System.Text.Json and maybe this causes…

tzm
- 588
- 1
- 12
- 27
3
votes
1 answer
Dynamic Template in SendGrid: check a string
I'm creating a dynamic template in SendGrid. I want to change the color of a field based on a field in my case Success.
For example, this is my json.
{
"Environment": "[DEV] ",
"RunAtTime": "09/06/2020 11:29:02 +01:00",
"Status":…

Enrico
- 3,592
- 6
- 45
- 102
3
votes
2 answers
Sendgrid Dynamic Template Stripping HREF from Anchor tags
I have a dynamic email template for sending a user a unique token link to reset their password. I assign the link to a field named 'link' in the dynamic_template_data section of my personalizations in my request object. When I receive the email, my…

Paul Murray
- 399
- 2
- 16