Questions tagged [sendgrid]

Cloud-based email infrastructure and delivery engine, with integration via SMTP and HTTP API. Also offers analytics and newsletter functionality.

SendGrid is a cloud-based email infrastructure and delivery engine, with integration via SMTP and HTTP API, also offering analytics and newsletter functionality.

Helpful links

3350 questions
146
votes
10 answers

How to handle both a single item and an array for the same property using JSON.net

I'm trying to fix my SendGridPlus library to deal with SendGrid events, but I'm having some trouble with the inconsistent treatment of categories in the API. In the following example payload taken from the SendGrid API reference, you'll notice that…
Robert McLaws
  • 2,258
  • 2
  • 19
  • 22
55
votes
10 answers

Sendgrid returns 202 but doesn't send email

I'm trying to get the basic "hello world" of sendgrid working, but have so far been unsuccessful. The response returns code 202, suggesting that it will send the email, but the email never sends out. Does anyone know what's going on? import…
Matrym
  • 16,643
  • 33
  • 95
  • 140
55
votes
4 answers

Sendgrid change href of link

I am using Nodejs with Express and I am sending an email through Sendgrid, but Sendgrid is changing the href link var emailText = '
rafaelcb21
  • 12,422
  • 28
  • 62
  • 86
45
votes
11 answers

SendGrid API Key is not working. "The provided authorization grant is invalid, expired or revoked"

SendGrid seems to be preventing my node js server from sending emails. I get this error message in the response on sending off an email: The provided authorization grant is invalid, expired or revoked I have an API key setup as well and have…
AngularM
  • 15,982
  • 28
  • 94
  • 169
42
votes
7 answers

Too many DNS lookups in an SPF record

My website needs to send out emails with Google Apps, SendGrid and MailChimp services. Google Apps is used to receive and read incoming email to my domain. I need to set the SPF record for my domain. The following is syntactically correct (not sure…
Robert
  • 559
  • 1
  • 4
  • 6
39
votes
6 answers

Adding a name to the "from" field in SendGrid in Node.js

I want to add a name to my "from" field using the SendGrid API, but I do not know how to do this. I tried setting the "from" parameter in sendgrid.send to Name but that didn't work. Thanks.
Ian Macalinao
  • 1,608
  • 3
  • 20
  • 30
31
votes
6 answers

SendGrid Emails Getting Rejected as Spam

I'm making a user management system for my app, and I need to send users a "forgot my password" email with a token that lets them reset their account password. I signed up for SendGrid through Azure (to get the 25,000 emails per month free, which…
Reubend
  • 644
  • 1
  • 6
  • 19
30
votes
8 answers

Node JS: Sendgrid Mail 403 'Forbidden' error

I am sending a very straightforward email using Send grid in my node js project. But I get returned a 403 Forbidden error. The API Key has full access. The code is also correctly integrated, as I used another API Key from another account and it…
iqra
  • 1,061
  • 1
  • 11
  • 18
29
votes
2 answers

SendGrid incoming mail webhook - how do I secure my endpoint

I'm currently using SendGrid's Inbound Parse Webhook to feed emails to my application. I've been able to get it working by pointing the URL to an endpoint which my application has exposed. SendGrid just sends the email in the form of a JSON format…
Diskdrive
  • 18,107
  • 27
  • 101
  • 167
28
votes
4 answers

Is it possible to exclude links from tracking

I am building an app which is utilizing Sendgrid Marketing Email API, with the purpose of sending newsletters. It has a number of links to articles, but also banner ads and other service links. We would obviously like to keep tracking of article…
Lukas Lunow
  • 452
  • 1
  • 4
  • 15
27
votes
3 answers

How to associate sendgrid webhook sg_message_id to sent mail?

Sendgrid webhook has sg_message_id But the response of Web API v2 when sending mail doesn't have sg_message_id. In fact, there is only message showing only success or failed. So, how do i associate between sent mail and the webhook callback? I have…
chaintng
  • 1,325
  • 3
  • 14
  • 26
27
votes
7 answers

Does SendGrid template engine have conditionals?

Sending transactional apis through SendGrid. My template (ported over from Mailchimp) has conditionals (e.g. *|IF:SHOWTHISSECTION|* in Mailchimp syntax). This includes or excludes sections of the template based on a variable. I can't find the…
Mark Watkins
  • 862
  • 1
  • 9
  • 19
26
votes
4 answers

SendGrid Link Branding gives ssl issue

Unfortunately, nobody is responding to my support ticket so I think it's a problem needs someone with experience with sendgrid the reproduction is simple: did the Domain Authentication and Link Branding Added all the necessary record to my DNS…
Yahia Bat
  • 564
  • 5
  • 12
26
votes
2 answers

Status Forbidden -When Sending Email with Sendgrid

i am trying to send email through sendgrid. But every time it return status Forbidden. public Task SendEmailAsync(string email, string subject, string message) { var apiKey = Environment.GetEnvironmentVariable("SENDGRID_API_KEY"); …
Muhammad Sami
  • 520
  • 2
  • 8
  • 21
25
votes
4 answers

How to create custom email headers

I'm trying to create a custom email header to use the SendGrid api. Here's what I'm doing - but its not working: class Mailman < ActionMailer::Base default :from => "info@sample.com" def send_message(name, email, message) @name = name …
Northband
  • 433
  • 1
  • 6
  • 11
1
2 3
99 100