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
1
vote
3 answers

SMTP server did not accept the password

I had written following code to send email. static function sendEmail($email,$data,$type){ $Email = new CakeEmail(); $Email->config('general'); switch($type){ case 1: $Email->template('confirmation_free',…
Xylon
  • 461
  • 4
  • 11
  • 20
1
vote
2 answers

What is the backslash in `new \SendGrid(...` within PHP?

Within some PHP code, I see the following ... ... $sg = new \SendGrid( ... ); $email = new \SendGrid\Email(); ... I understand that the backslash is usually to escape special characters... but here what is the backslash for? What is it doing? …
Grateful
  • 9,685
  • 10
  • 45
  • 77
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
1
vote
3 answers

Laravel - Sendgrid smtp error "550 Unauthenticated senders not allowed"

I am following Sendgrid laravel integration using smtp to send email. I did as the documentation says, all credentials are same as my sendgrid credentials. But whenever I try to send email using, Mail::send('mails.demo', $data, function($message) …
Straw Hat
  • 902
  • 14
  • 38
1
vote
2 answers

Sendgrid: Upload an attachment once for multiple emails?

I would like to upload an attachment once and send it for multiple emails (~5000 emails per day. Emails with different content, but same attachment). Does SendGrid API provide an option to use previously uploaded files as attachments? It's ok to…
apadana
  • 13,456
  • 15
  • 82
  • 98
1
vote
1 answer

Creating a mailing list with Django & Sendgrid?

I would like to add a newsletter signup to my website which has a backend set up with Django. How should I go about handling email information when submitted to my site? Should I create a new model just for emails? Is there a way I can take emails…
Mohammed B
  • 305
  • 1
  • 4
  • 14
1
vote
0 answers

SendGrid white label domain without causing conflicts

We're using SendGrid to handle emails on all of our websites but are experiencing some issues with spam filters etc. and want to effectively white label our domain, but it's a little complex: We are hosting several versions of a website in our…
1
vote
1 answer

How to add CC recipient in Sendgrid v3?

Hello I need to add other "cc" recipients using the sendgrid v3 API in PHP. How do I do it? In the documentation they put the following code, but I find it insufficient, because I need to see how to add "CC" recipients. $request_body =…
Luis
  • 2,006
  • 5
  • 31
  • 47
1
vote
1 answer

How to wait on an async method in third party library - web api

I am using SendGrid (cloud based SMTP service) to send emails from a web api project. I want my application to wait/block (for say 30 secs) until I have a response from SendGrid before returning the response to the client, rather than returning…
user644698
  • 209
  • 2
  • 12
1
vote
1 answer

Sendgrid : get bounce status code with webhooks (php api)

I use Sendgrid to send emails. Emails are sent using their web API and I use an endpoint to get each email events. Here is the code of this endpoint (that Sendgrid call each time when an event occur, after sending an email). I would like to get the…
Julien
  • 3,743
  • 9
  • 38
  • 67
1
vote
0 answers

sendgrid SendAt doesn't work on Azure

Ok, this is very strange! I have a code that sends scheduled emails to people using sendgrid api (Sendgrid 8.0.5) . It works fine on my local system, but on Azure (on app services) it just ignores the SendAt time. public async Task…
Ashkan S
  • 10,464
  • 6
  • 51
  • 80
1
vote
1 answer

Smarthost configuration to configure sSMTP to relay sendgrid

The "clear problem statement" is How to configure sSMTP to relay sendgrid as smarthost ? The default sSMTP config is:: $ cat /etc/ssmtp/ssmtp.conf root=postmaster # MX records are consulted. Commonly mailhosts are named…
user3313834
  • 7,327
  • 12
  • 56
  • 99
1
vote
1 answer

Rails 4, Devise, Heroku, SendGrid: Password reset does not work

I am using Rails 4 with Devise on Heroku, plus SendGrid for sending e-mails. The mailer is generally set up correct: When a User signs up, it requires Admin approval, for which I receive e-mails. However, when trying to request password reset…
rubykatz
  • 278
  • 3
  • 12
1
vote
3 answers

Error when trying to send transactional email from template using sendGrid

I'm trying to send a transactional email via node using sendGrid. Below is an example of my code. const subject = 'Email subject'; const templateId = 'templateId'; const sg = require('sendgrid')(secret); const request…
Tom Maton
  • 1,564
  • 3
  • 23
  • 41
1
vote
1 answer

How can I get my environment variable from the shell to PHP for Sendgrid API?

This is the code for sending email using sendgrid. I have tried following the directions to the best of my knowledge. It seems like my code is failing at getev($apiKey); which is not returning anything, hence the Unauthorized Access error. How can I…
Govind Rai
  • 14,406
  • 9
  • 72
  • 83
1 2 3
99
100