Questions tagged [sendgrid-ruby]

20 questions
9
votes
2 answers

Encoding for special characters not working in email subject for sendgrid templates

I have been using the sendgrid-ruby gem for sending emails. The subject of the email doesn't decode special characters properly. Eg. Sending this subject for the email How's it going translates to this in the actual email How's it going I have…
6
votes
2 answers

How to disable link tracking for certain links with Sendgrid and Rails

Is there any way to disable link tracking for certain links when sending emails from Rails through sendgrid?
Mïchael Makaröv
  • 1,085
  • 12
  • 21
3
votes
1 answer

Add attachment to email with SendGrid using rails

I've created a hello_world method which sends an email with Sendgrid. I am trying to include an attachment. I've found the following line in another stackoverflow answer: mail.attachments['test.txt'] = File.read("#{Rails.root}/public/test.txt") This…
Pimmesz
  • 335
  • 2
  • 8
  • 29
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
2
votes
0 answers

How to solve SMTPAuthentication error / Ruby on Rails app, Devise, SendGrid hosted on Heroku

Good day guys, I am working on a rails application that uses devise to send confirmation emails to registered users. The app properly responds on the development environment and the mails can be caught by mailcatcher. After pushing on heroku my logs…
Andre Roy
  • 53
  • 7
1
vote
0 answers

Sendgrid email subject is missing

I'm working with Ruby on Rails and trying to send emails for my application via sendgrid. I'm using sendgrid-ruby version 6.6.2. Everthing working fine and all the personalizations are being added perfectly, so the email subject. But when email is…
Ali Nawaz
  • 43
  • 1
  • 7
1
vote
1 answer

Add CC in reply sendgrid

I am sending an email from my desktop application using sendgrid. I can add cc when I am sending email. But when user clicks on reply it will only send email to 'To' address automatically. CC & BCC are empty in reply field. I can set reply_to field…
Ajit Hegde
  • 542
  • 1
  • 15
  • 33
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…
1
vote
1 answer

Syntax error, unexpected tLABEL, expecting ')' (SyntaxError)

Environment Ruby [1.9.3p547] Rails [3.2.22.5] sendgrid-ruby [4.0.8] I used sendgrid-ruby gem in my application whenever I run rails server it's giving me below error which comes from…
Vishal
  • 7,113
  • 6
  • 31
  • 61
1
vote
1 answer

How to set a category in Sendgrid-Ruby v3?

Upgrading to SendGrid-Ruby V3 from V2. In the past we set a category via header = Smtpapi::Header.new header.add_category("Congrats Credit") I have searched the documentation for setting a category, but cannot find anything for V3. There is a…
jdog
  • 10,351
  • 29
  • 90
  • 165
1
vote
1 answer

NoMethodError Ruby 1.9.3

I am using Ruby 1.9.3 and getting the following error on the following line while trying to use the SendGrid API. ERROR [on this line below "mailer.mail(mail_defaults)"]: NoMethodError (undefined method `to_h' for #):…
jdog
  • 10,351
  • 29
  • 90
  • 165
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…
0
votes
0 answers

Best practices for using SendGrid's v3 API?

I'm using the v3 API to send confirmation emails to my new users. All of the emails appear to be sending BUT over half of the emails don't contain the dynamically-inserted confirmation URL that I send along in the request. I'm not sure where to…
0
votes
1 answer

Issues with getting sendgrid-ruby library to run as ruby script

I am trying to get the sendgrid-ruby library to send an email, and I have managed to write a script that I can run line by line and get to work. However, when I try to run the script as a whole, I get…
1
2