Setting up sendgrid for rails..returning Authorization error

Trip picture Trip · Jun 4, 2010 · Viewed 8.1k times · Source

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

Answer

Isaac Saldana picture Isaac Saldana · Jun 5, 2010

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