Stay up to date
We'll highlight new content in your collectives with a blue activity indicator on navigation items and posts.
Manage preferences
Questions
Browse questions with relevant Twilio tags
14,526 questions
151
votes
9
answers
63k
views
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 ...
144
votes
11
answers
693k
views
Data truncated for column?
After changing the data type of a MySql column in order to store Twilio call ids (34 char strings), I try to manually change the data in that column with:
update calls
set incoming_Cid='...
106
votes
5
answers
82k
views
Twilio permission to send sms has not been enabled for the region indicated [closed]
I'm a new Twilio user and am trying to test sending an SMS using my Live credentials, purchased From number, and valid To number. I'm receiving this error:
Unable to create record: Permission to send ...
44
votes
6
answers
30k
views
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 <[email protected]> but that ...
60
votes
12
answers
53k
views
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. ...
46
votes
11
answers
52k
views
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 ...
60
votes
4
answers
56k
views
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 = '<!DOCTYPE html><html><head><meta charset="UTF-8"...
38
votes
9
answers
56k
views
Send SMS with trial twilio account
I want to try to send SMS to a cellphone in Austria. I have set up a free trial Twilio account to do so. however, my Twilio account seems not to be capable of doing so. but I think it should be ...
24
votes
14
answers
58k
views
"ImportError: No module named twilio.rest"
I have installed python 2.7.10 with PATH access and correctly installed twilio. However, when I try to execute a code I get this error message
Traceback (most recent call last):
File "C:\Users\...
42
votes
7
answers
54k
views
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. ...
31
votes
4
answers
23k
views
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 ...
32
votes
8
answers
40k
views
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 ...
26
votes
9
answers
24k
views
Twilio PHP - SSL certificate: self signed certificate in certificate chain
I'm struggling with this error when trying to send a message via Twilio using their PHP library:
Fatal error: Uncaught exception Services_Twilio_TinyHttpException with message SSL certificate problem:...
22
votes
4
answers
20k
views
Sendgrid not sending text to new line
I am using sendgrid api with nodejs and for some reason the emails are sending but not adding new lines. I've used and also \n but no luck. Any idea what is wrong?
Here is the code I am using
var ...
33
votes
6
answers
46k
views
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 (...
19
votes
9
answers
21k
views
Nodemailer in vercel not sending email in production
I'm using Nodemailer to send emails in my serverless Next.js project, deployed in Vercel, which works perfectly in development mode. But I'm having problems in production. No error returned, ...
27
votes
7
answers
36k
views
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 ...
18
votes
11
answers
29k
views
sendgrid error "Access forbidden" when trying to GET user profile API
The following API request:
curl --request GET \
--url https://api.sendgrid.com/v3/user/profile \
--header 'Authorization: Bearer API KEY'\
--header 'Content-Type: application/json'
...
21
votes
6
answers
18k
views
How to send multiple recipient sendgrid V3 api Python
Anyone please help, I am using sendgrid v3 api. But I cannot find any way to send an email to multiple recipients. Thank in advance.
import sendgrid
from sendgrid.helpers.mail import *
...
26
votes
4
answers
15k
views
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 => "[email protected]"
...
19
votes
7
answers
24k
views
How do I add a line break in my Twilio SMS message?
Using Java/Scala. I am sending this string (an sms message) to a user mobile number by a Twilio Account.
var body = "Hello from Govind Singh Nagarkoti! Your verification code is " + code
This goes ...
29
votes
4
answers
17k
views
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 ...
29
votes
2
answers
16k
views
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....
26
votes
5
answers
30k
views
How can I add unsubscribe links to my emails when sending via sendgrid/mail
I'm sending emails using: https://github.com/sendgrid/sendgrid-nodejs/tree/master/packages/mail
I have not been able to find out HOW I can add the <a href="[Unsubscribe]">Unsubscribe</a> ...
19
votes
7
answers
37k
views
Iterating through array in SendGrid email template
I'm trying to iterate through a collection and display information in a SendGrid template using Ruby on Rails.
recipient = SendGrid::Recipient.new("[email protected]")
recipient.add_substitution("...
17
votes
12
answers
31k
views
twilio error 'username required'
var express = require('express');
var router = express.Router();
var bodyParser = require('body-parser');
var nodemailer = require('nodemailer');
var TWILIO_TOKEN = "...
19
votes
5
answers
19k
views
Best practices for sending email to lots of recipients (Rails + SendGrid)
I will be sending bulk emails from a Rails app and plan on using SendGrid. I am assuming that it is best to send a separate email to each recipient (as opposed to using BCC for all the recipients). If ...
15
votes
2
answers
18k
views
Postman Twilio Rest Api
Hi I was wondering if someone could help me ,I am trying to use twilios' rest api and im running into some trouble. MyAccountIdSid,mySid and phone numbers are filled in in the actual request,Is there ...
29
votes
4
answers
63k
views
Can I use Firebase for sending SMS to users without using Twilio?
I used to use Firebase + Twilio to send SMS to any devices,
but I'm not sure that I can send SMS by using Firebase only or not?
Does Firebase have an API for sending SMS?
20
votes
10
answers
26k
views
API Key does not start with "SG." SendGrid
I am trying to set up SendGrid add-on in my Heroku NodeJS app.
I created the API Key and set it as an environment variable.
The whole API key looks something like: SG.actualValue.bbb_cccccc
The ...
24
votes
5
answers
7k
views
Sendgrid email delivery drop due to Spamhaus listing [closed]
Starting on 2020-08-17, Sendgrid IP addresses were listed on Spamhaus for sending phishing emails. Shown here:
1
2
3
This has dropped our email delivery to about 50%, as opposed to the usual 99%.
Is ...
23
votes
7
answers
54k
views
How to resolve "Warning: Invalid DOM property `fill-rule`. Did you mean `fillRule`?" on Twilio Flex
I just downloaded the Twilio Flex Sample App and once I add my appConfig and do a npm start I immediately see several errors:
Warning: Invalid DOM property fill-rule. Did you mean fillRule?
Warning: ...
14
votes
7
answers
21k
views
Wrong credentials in sending mail using sendgrid
This is the code for sending email using sendgrid i have correct api key still the browser displays error as
HTTP/1.1 401 Unauthorized Server: nginx Date: Thu, 14 Jul 2016 08:14:32 GMT Content-Type: ...
16
votes
8
answers
28k
views
SendGrid API V3 returns 400 Bad Request
I am trying to achieve send of mail via SendGrid API.
Following is the JSON I am sending as a body of the POST Method
{
"content" : [
{
"type" : "text\/plain",
"value" : "Hello, ...
19
votes
3
answers
8k
views
How to configure SendGrid Sender Authentication (Domain Verification) in GoDaddy
Unable to validate the domain with GoDaddy after adding the CNAMEs from SendGrid
18
votes
8
answers
24k
views
SendGrid Unable to read data from the transport connection: net_io_connectionclosed
I am getting an exception thrown sending an email via SendGrid since recently upgrading a project to .net 4.5.2
Failure sending mail. System.IO.IOException: Unable to read data from
the transport ...
24
votes
3
answers
11k
views
ActionMailer sending real emails in test mode! - How to turn off?
Newly signed up users to my little app must be approved by the admin (me) before they can gain access to the site. I've succeeded in generating such emails in development with an after_create :...
25
votes
2
answers
14k
views
Setting Up Devise & Sendgrid on Heroku
My site is hosted on Heroku and I installed the Sendgrid Add-On as it looked almost too good to be true - but so far none of the email functionality is working. I have read the documentation and it ...
25
votes
2
answers
14k
views
Twilio says I don't have permission to send to the region of my 'To' number [closed]
I am trying to send a simple SMS and have been doing so for over a year with my app. All of a sudden, on my staging and local environment (prod is fine), I keep getting this error:
Twilio::REST::...
26
votes
1
answer
93k
views
Change outgoing mail address from root@servername - rackspace sendgrid postfix [closed]
So I recently setup my Rackspace server (Ubuntu LAMP stack) to use Postfix and Sendgrid for outgoing email. It works great in that my test mail from the cmd line gets delivered via sendgrid smtp. ...
15
votes
5
answers
22k
views
Python Sendgrid send email with PDF attachment file
I'm trying to attach a PDF file to my email sent with sendgrid.
Here is my code :
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email("[email protected]")
...
16
votes
6
answers
14k
views
Avoid being blocked by web mail companies for mass/bulk emailing? [closed]
Our company is sending out a lot of emails per day and planning to send even more in future. (thousands) Also there are mass mailouts as well in the ten thousands every now and then.
Anybody has ...
24
votes
6
answers
40k
views
How can i send emails without a server ? Only front-end Javascript with sendgrid or
i was wondering lately how i could send emails with only a front-end language like Javascript through Email as a Service apps like sendgrid or mandrill or so.
Sendgrid and mandrill have Curl APIS, so ...
14
votes
9
answers
29k
views
Twilio REST API error - "Authenticate"
I'm getting the following error when I try to place calls using the Twilio REST API.
https://www.twilio.com/docs/api/rest
HTTP/1.1 401 Unauthorized
Server: nginx
Date: Thu, 10 May 2012 16:50:48 ...
17
votes
5
answers
45k
views
Could not load file or assembly 'RestSharp, Version=105.2.3.0
I am having some trouble understanding this issue.
I have a local project with Twilio added via Nuget. But when I export the project to my IIS server, it cannot use Twilio, even if i have added all ...
16
votes
3
answers
16k
views
Sendgrid / email sending issues in Ruby on Rails (hosted on Heroku)
im having a problem getting sendgrid to send emails successfully on a rails 3.1 app that's using authlogic for authentication and is being deployed on heroku. i have the following action mailer ...
17
votes
4
answers
21k
views
One-Time User Authentication with SMS Using Django and Twilio
I am writing a back-end in Django for a mobile app I am creating. I need to authenticate a user the first time they open the mobile app through SMS to verify it is a real person. What needs to happen ...
33
votes
2
answers
7k
views
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 ...
11
votes
1
answer
13k
views
How to insert dynamic data (HTML) into SendGrid Templates in JavaScript
I wish to send an email using a SendGrid template.
I use the standard v3 api and a simple axios call.
I wish to send an email using a Template.
The mail should contain a number of rows and columns. ...
18
votes
2
answers
18k
views
Rails: Before process_action callback :authenticate_user! has not been defined
I'm creating a rails app that includes devise.
I'm trying to add Twilio messaging to my site with Ngrok, i used this tutorial:
https://www.twilio.com/blog/2016/04/receive-and-reply-to-sms-in-rails....
Members can contribute articles
Simply submit a proposal, get it approved, and publish it.
See how the process works
Simply submit a proposal, get it approved, and publish it.
See how the process works