Questions tagged [sendgrid-rails]
19 questions
3
votes
1 answer
Rails ActionMailer using API method instead of SMTP - SendGrid
I am trying to send mail using Rails 5.2 and Sendgrid. I have read tutorials how to set it up. However, all I am finding are ways to setup the SMTP method of sending, which is slower than the API method. Example:…

user2012677
- 5,465
- 6
- 51
- 113
2
votes
1 answer
How do I create an email preview for SendGrid dynamic template Ruby on Rails
I'm new to using SendGrid with Ruby on Rails. I'm using SendGrid's dynamic template and the sendgrid_actionmailer gem to send emails.
I cannot figure out a way to show previews for these emails (dynamic templates).
In my development.rb file
if…

ssh
- 41
- 6
2
votes
1 answer
Sending emails from different domains
We are currently running our ruby on rails application with SendGrid for sending emails. We have authenticated two subdomains in our SendGrid account:
test1.mydomain.com
test2.mydomain.com
Currently the default domain for sending emails is…

user11350468
- 1,357
- 1
- 6
- 22
2
votes
0 answers
Can we use SendGrid Template with ActionMailer in Ruby on Rails Application?
I want to use SendGrid Template which I developed on SendGrid with ActionMailer instead of using app/views/test_mailer/test.html.erb in one of our Ruby on Rails Application. How can I do it?
Any suggestions

Chetan Tete
- 21
- 1
2
votes
1 answer
What does :tls => true do in SMTP settings in Rails 5?
I'm using Sendgrid on a Rails 5.2 application and was getting a
Net::ReadTimeout error when trying to send an email. The post here
https://github.com/mikel/mail/issues/639#issuecomment-29016055 suggested adding :tls => true to the SMTP settings.…

Travis Smith
- 622
- 5
- 22
2
votes
1 answer
(Bundler::GemRequireError) Gem Load Error is: uninitialized constant AbstractController::Rendering
I'm using Rails 5.0.0.beta3, everything works well, after I integrated sendgrid-rails I got this exception when running rspec
There was an error while trying to load the gem 'sendgrid-rails'. (Bundler::GemRequireError)
Gem Load Error is:…

Hieu Pham
- 6,577
- 2
- 30
- 50
1
vote
1 answer
Getting duplicate emails from contact form in rails/react app
I added a contact form to my rails/react app using Sendgrid. Everything is working, but I'm getting 3-5 emails every time something is submitted through the contact form. Some of them are missing the data from the contact form. I can't spot what in…

Maddox Grey
- 61
- 1
- 6
1
vote
1 answer
Email confirmation account sendgrid
i get an addon sendgrid for my app of heroku, but when i want go to my account of sendgrid,i need send email for the confirmation and heroku choose automatically an Heroku email example: appXXSADAS0878@heroku.com, i confirm this email, the same way…

Steven Ramirez
- 83
- 5
1
vote
0 answers
How to implement Sendgrid with Rails 6 using credentials
I'm having difficulties integrating Sendgrid with Rails 6, and I'm a bit lost at the moment because according to my terminal, emails are being sent to the corresponding email address.
OrderMailer#receipt: processed outbound mail in 17.9ms
Delivered…

Aaron Z
- 73
- 1
- 5
1
vote
2 answers
Sendgrid for ActiveAdmin
I have a website that currently sends an email to users once they sign up using sendgrid. This works all and well, but I cannot figure out how to do this:
When to user makes a reservation on my website(its kind of like open table), the reservation…

Albert Jin
- 51
- 1
- 5
0
votes
1 answer
SendGrid marketing API workflow
My app requires ability to subscribe and unsubscribe customers to marketing emails using SendGrid's Contacts API. Customers can also be subscribed\unsubscribed from outside the app so I need to keep track of those as well.
I'm currently very…

Dmitry Staver
- 81
- 1
- 6
0
votes
1 answer
Sendgrid - BCC API to be removed from Mail Settings
I am using Sendgrid in my Rails application for sending emails. I got an email from Sengrid saying that:
We’re emailing you with an update concerning the retirement of the BCC feature of our Email API. Our records show that you are still using the…

webster
- 3,902
- 6
- 37
- 59
0
votes
1 answer
SendGrid returning error when sending template email
I am using sendgrid-ruby gem to send an email template but it is returning an error:
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
My code is as follows:
@sendgrid =…

Mohammad Ali
- 57
- 6
0
votes
1 answer
Sendgrid SMTP via Rails email metadata
When using ActionMailer mailers and having the SMTP settings as Sendgrid, is it possible to get a reference to the Sendgrid email when the mailer runs, or would it require migrating to the Sendgrid REST api?

BC00
- 1,589
- 3
- 29
- 47
0
votes
2 answers
Sendgrid implementation - no implicit conversion of nil into String
I've set my environment like so:
echo "export SENDGRID_API_KEY='xxxxxxxxx'" > sendgrid.env
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env
Sendgrid gem is installed.
Code I try to run:
require 'sendgrid-ruby'
include SendGrid
require…

Pimmesz
- 335
- 2
- 8
- 29