Questions tagged [sendgrid-templates]

Questions related to SendGrid's templating engine, it's usage, API, etc. Also includes transactional templates.

155 questions
1
vote
1 answer

Using Sendgrid API to send emails

I'm sending emails using the Sendgrid API, but every email that I send does not have the Subjet. My code looks like this: def send_notification(sendgrid_key, p_email): message = Mail( from_email=('my_email@mail.com'), …
Pin90
  • 91
  • 1
  • 10
1
vote
1 answer

Prevent SendGrid from replacing tags in Dynamic Templates

I'm using the @sendgrid/mail library to send emails from our app, using a dynamic template. The template is created entirely with custom HTML. When emails are delivered, any custom code in tags is ignored. More specifically, SendGrid adds a…
1
vote
1 answer

SendGrid copy template from Subuser to Parent Account

I need to copy some my Dynamic Templates from Subuser to my ParentAccount. Can I do it? Or I can't?
Neilord
  • 56
  • 8
1
vote
1 answer

how to get sendgrid user id after saving contact by using their API

I am using SendGrid API to save contacts and it returns only "job_id" that's operation is successful but I need a user_id after saving the contact to save in our local DB. There is another API to search the contact by their email but the main…
1
vote
1 answer

SendGrid Mail send is not working in my django rest-api view

I tried to add the send mail using sendgrid in my django & react project, but it is not working. My code in backend api view is like following: import os import json from rest_framework.response import Response from sendgrid import…
Ping Zhao
  • 266
  • 5
  • 19
1
vote
0 answers

How to send email using sendgrid in Nodejs using dynamicTemplateData?

This my first time I use sendgrid for mail. I have problem with dynamic data passed from database. Actually HTML content passed in object and display as it is in mail. For more detail check below object. { to: "to Email" from: "from email", …
Robin Singh
  • 1,565
  • 1
  • 13
  • 38
1
vote
0 answers

400 Error Bad Request Dynamic Templates with Substitutions not working in Sendgrid for Python

Issue I am trying to send multiple emails using a Dynamic Template, with each email having their own unique substitutions using the Mail Helper class. If I don't include the substitutions then the code works perfectly and mails are delivered, but as…
1
vote
1 answer

Can you send a dynamic template to a list, using only list id?

According to the SendGrid docs, it seems like I can send a template to a list by inputting the template ID and list ID into the singlesend call. However when I call this method with those JSON fields, I get an…
Johnny
  • 11
  • 1
1
vote
0 answers

Unable to open the file attachment

I tried to send attachment using sendgrid CURL, the mail send successfully, but i'm unable to open the attachment file(like jpg, png, xls). the input file will be changes as per the user, also the file is not correct as in the original size. I tried…
Sakthi MPS
  • 11
  • 2
1
vote
1 answer

Sendgrid pass an URL to href attribute

I am trying to send a reset password link through the sendgrid email. My email template is like this Reset Password
margherita pizza
  • 6,623
  • 23
  • 84
  • 152
1
vote
2 answers

How to set links dynamically in Sendgrid v3 using javascript (node.js)

I am trying to add a unique link to a sendgrid template, but so far I have had no luck. The button in the sendgrid is the following: Accept I have also tried:
Jani
  • 507
  • 3
  • 21
1
vote
1 answer

How to correctly display links using Legacy templates?

I'm trying to send an email using substitutions with a legacy template. Some of the substitutions are URLs, that I want to display using an tag. My problem is that everything in the href attribute gets outputted when it really should not. For…
Deinonychus
  • 135
  • 1
  • 9
1
vote
2 answers

Sendgrid templates with test data and arrays

I have some test data that looks like this: { "firstName":"Ben", "products": [{ "name": "first product", "position": 0 }, { "name": "second product", "position": 1 }, { "name": "third product", …
r3plica
  • 13,017
  • 23
  • 128
  • 290
1
vote
0 answers

Display Recipient Email in Unsubscribe HTML

I have set the unsubscribe HTML body from the settings of sendgrid. The only issue I am getting is to display the email which is being unsubscribed. Tried the placeholders in the following attached image but none of them worked. Also, couldn't find…
1
vote
0 answers

Sendgrid won't receive email from .NET Core 2.0 console application

I am in the "verify integration" stage of setting up SendGrid and am using the code below to send my first email. I have copied the code from their instructions: // using SendGrid's C# Library // https://github.com/sendgrid/sendgrid-csharp using…
marcusturewicz
  • 2,394
  • 2
  • 23
  • 38