Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up sendgrid for rails..returning Authorization error

The emails now send from my local, but do not send from my box. I am returned this error. Anyone know what this might be?

Net::SMTPAuthenticationError (535 5.7.8 Error: authentication failed: authentication failure ):

My environments/production.rb

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address => "smtp.sendgrid.net",
  :port => '25',
  :domain => "mydomain.com",
  :authentication => :plain,
  :user_name => "[email protected]",
  :password => "password1234"
 }

/etc/ssmtp/ssmtp.conf :

root=postmaster
mailhub=smtp.sendgrid.net
[email protected]
AuthPass=password1234
AuthMethod=LOGIN
rewriteDomain=mydomain.com
FromLineOverride=YES
UseSTARTTLS=NO
like image 921
Trip Avatar asked Jun 04 '10 19:06

Trip


1 Answers

This usually happens because your account hasn't been provisioned.

like image 174
Isaac Saldana Avatar answered Nov 08 '22 00:11

Isaac Saldana