Hi everyone,
I'm having a hard time getting SendGrid to accept emails. My configuration (mail.rb) is this:
ActionMailer::Base.smtp_settings = {
:port => 587,
:user_name => ENV["SENDGRID_USERNAME"],
:password => ENV["SENDGRID_PASSWORD"],
:authentication => :plain,
:enable_starttls_auto => true
# :openssl_verify_mode => 'none'
}
I'm running in development mode on my dev machine (so not
fightforthefuture.org). I have the environment variables set. I'm consistently getting this error from the delayed job:
550 Cannot receive from specified address <an email address>: Unauthenticated senders not allowed
an email address (actually a valid email address, but I don't want spammers to find it here) is the email address I've said to send emails from (it's the same as is registered for SendGrid). Tracing the SMTP interaction (by disabling SSL) shows that Rails is not authenticating with SendGrid. SendGrid then closes the connection with the above error message.
I've found various tips of the Internet regarding this: pasting username and password directly into the, disabling SSL, etc. Nothing works -- authentication just isn't happening.
Any ideas?
Thanks,
Noel