Skip to main content
How are we doing? Please help us improve Twilio. Take our short survey

Twilio Collective

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 ...
Robert McLaws's user avatar
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='...
Zagstrug's user avatar
  • 1,729
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 ...
user80126's user avatar
  • 1,169
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 ...
Ian Macalinao's user avatar
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. ...
Matrym's user avatar
  • 17k
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 ...
AngularM's user avatar
  • 16.5k
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"...
rafaelcb21's user avatar
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 ...
beta's user avatar
  • 5,586
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\...
Tomislav's user avatar
  • 253
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. ...
Robert's user avatar
  • 559
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 ...
Lukas Lunow's user avatar
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 ...
iqra's user avatar
  • 1,161
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:...
jd182's user avatar
  • 3,230
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 ...
ServerSideSkittles's user avatar
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 (...
Reubend's user avatar
  • 664
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, ...
Daniel Ioanitescu's user avatar
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 ...
Mark Watkins's user avatar
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' ...
Shiju Augustine's user avatar
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 * ...
P113305A009D8M's user avatar
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]" ...
Northband's user avatar
  • 443
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 ...
Govind Singh's user avatar
  • 15.4k
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 ...
chaintng's user avatar
  • 1,345
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....
Muhammad Sami's user avatar
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> ...
James111's user avatar
  • 15.8k
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("...
Sergio Tapia's user avatar
  • 9,673
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 = "...
Champa's user avatar
  • 605
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 ...
Matt Fordham's user avatar
  • 3,177
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 ...
kelevra88's user avatar
  • 1,562
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?
Nuttawut Anek's user avatar
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 ...
Cortoloman's user avatar
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 ...
Wouter Florijn's user avatar
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: ...
Cleanshooter's user avatar
  • 2,345
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: ...
art's user avatar
  • 276
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, ...
iOSer's user avatar
  • 2,306
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
Sreepriya Sreekumar's user avatar
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 ...
AVFC_Bubble88's user avatar
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 :...
BenU's user avatar
  • 2,317
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 ...
ubique's user avatar
  • 1,212
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::...
Matthew Berman's user avatar
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. ...
tehaaron's user avatar
  • 2,250
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]") ...
John's user avatar
  • 4,861
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 ...
Johannes's user avatar
  • 2,992
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 ...
darkylmnx's user avatar
  • 2,001
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 ...
Sparky's user avatar
  • 4,839
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 ...
Thugge's user avatar
  • 188
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 ...
Ringo Blancke's user avatar
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 ...
jaredthecoder's user avatar
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 ...
Diskdrive's user avatar
  • 18.6k
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. ...
Kermit's user avatar
  • 3,238
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....
DianaBG's user avatar
  • 1,631


15 30 50 per page
1
2 3 4 5
291