Setting up sendgrid for rails..returning Authorization error
Posted
by Trip
on Stack Overflow
See other posts from Stack Overflow
or by Trip
Published on 2010-06-04T19:51:42Z
Indexed on
2010/06/05
19:52 UTC
Read the original article
Hit count: 499
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
© Stack Overflow or respective owner