Questions related to SendGrid's templating engine, it's usage, API, etc. Also includes transactional templates.
Questions tagged [sendgrid-templates]
155 questions
2
votes
2 answers
SENDGRID: send an email using transactional template using python?
I am trying to send an email using the transactional template, sendgrid.
I am able to send a simple mail.
from_email = Email("useremail@gmail.com")
subject = "Welcome"
to_email = Email("toemail@gmail.com")
content = ("text/plane","Text here")
mail =…

Ajay Shewale
- 159
- 1
- 2
- 13
2
votes
4 answers
sendgrid substitutions not working
I'm just trying to set up a trial email for SendGrid, it's the first time I've used it so I'm sure this is simple, but I can't seem to get the placeholder data to replace.
I'm using NodeJS library like…

Richard G
- 5,243
- 11
- 53
- 95
2
votes
3 answers
I can't get transactional templates to save?
I'm currently working on creating my own transactional templates. Sometimes it seems like the templates save fine, but other times I just get a red box with no text in it that appears in the top bar of the page. I'm trying to figure out if this is…

Cody Short
- 47
- 7
1
vote
0 answers
Create Area to put Modules in
I've got an issue where I want to create an area to pull modules in.
I copy/paste my own code for the email template inside. I found docs where it is said, that I need to define role="module" and role="module-content" but that doesn't seem to work…

David Loos
- 11
- 2
1
vote
0 answers
How to use the "to" email inside template on Sendgrid email
I need to use the email that will be the recipient of the sendgrid template email inside the template itself. I could send it as a parameter, but it isn't desirable as I can send (By API) one only request with a array of recipients. How do I use the…

Richard Lucas
- 91
- 7
1
vote
1 answer
SendGrid - Email with Dynamic Template and Multiple Recipients only showing dynamic data for one of the recipients?
I'm trying to use SendGrid to send out emails to multiple recipients. I don't want the recipients to see each other's email, so I've tried two methods of accomplishing that:
adding is_multiple=True to the Email constructor and setting…

naydichev
- 4,672
- 1
- 19
- 14
1
vote
1 answer
SendGrid template creation in python
I want to create a version of a dynamic template using SendGrid's Python API. I was able to create the template using the Python API, but I want to add a version to the same template.
Can someone refer any examples ?
Thanks

Lucifer
- 11
- 3
1
vote
1 answer
Sendgrid Template: How to change text color dynamically?
with Sendgrid dynamic template, I'm trying to figure out how to use dynamic data for style property so I can change text color depending on some dynamic data.
in the following example, I'm trying to use dynamic data colorHash such as #ddd for style…

Otani Shuzo
- 1,118
- 1
- 11
- 22
1
vote
0 answers
Sendgrid Login Error: You are not authorized to access SendGrid, please contact Support
Acount created
When i create acount in sendgrid i get a message like this one says 'Please provide further information' 'Please contact Support to answer a few more questions.'
So when i try to contact with support to answer their question website…

Mehmet Nizam Saltan
- 11
- 1
1
vote
2 answers
How can i build a simple responsive footer for my sendgrid template?
I have a basic footer that would be super easy to create in almost any environment but email.
i am looking to do a email/phone/unsubscribe line to appear like
"email@email.com | 1-888-PHONENO (1-888-111-1111) | Unsubscribe"
works perfect in desktop…

sao
- 1,835
- 6
- 21
- 40
1
vote
1 answer
Combined Handlebars in SendGrid
I'm trying to set up a string match using handlebars in SendGrid. As I understand it, you can only use the if statement with booleans so I'm trying via {{equals}} instead. This works fine but I'm then trying to inject that 'thing' into the result.…

Chris Hardcastle
- 13
- 3
1
vote
1 answer
Send transactional email with SendGrid on a Rails app
I am trying to send a transactional email using Sendgrid upon client booking on a Rails application.
I did create a dynamic template as required.
When I make a POST request to https://api.sendgrid.com/v3/mail/send with POSTMAN using the right body…

Jonathan
- 73
- 1
- 4
1
vote
1 answer
Sendgrid handlebars #if statement in html checkbox
is it possible to do a replacement inside a HTML tag?
Template:
Test Data:
{
"CompleteAndTrueConfirmation": true
}
I get the error:
Unexpected character after…

Daniel
- 9,491
- 12
- 50
- 66
1
vote
1 answer
(Email API-Dynamic Template) Why does HTML code in actual email look entirely different from preview mode?
I have added a code block on top of my dynamic email template (code given below). It looks perfect in Preview mode, but entirely different when actual email is sent

Sonal
- 137
- 2
- 13
1
vote
1 answer
Sendgrid - How do I access the "to" email address object to personalize dynamic template in v3 api C#
We are using Sendgrid C# library created a stored dynamic template. It is working fine except we cannot figure out how to access the "to" object to display the user's name dynamically in the template. Here is the JSON being sent:
{
"from":{
…

brianc
- 455
- 2
- 21