Rails app + gmail smtp + heroku hosting + godaddy domain

Posted by sagivo on Stack Overflow See other posts from Stack Overflow or by sagivo
Published on 2012-12-16T17:07:50Z Indexed on 2012/12/17 11:03 UTC
Read the original article Hit count: 266

Filed under:
|
|
|
|


i'm trying to define a way to send emails using gmail. it all works fine on localhost but when i deploy to heroku nothing happens.
i guess it has something to do with GoDaddy MX records? here is what i tried:

ActionMailer::Base.smtp_settings = {
      :address              => "smtp.gmail.com",
      :port                 => 587,
      :domain               => "gmail.com",
      :user_name            => "my_user",
      :password             => "my_pass",
      :authentication       => "plain",
      :enable_starttls_auto => true
  }

i can't change the GoDaddy MX records since i'm forwording some emails from there to my Gmail account. am i missing something?

EDIT- it turns out the problem was with my Gmail account. all i needed to turn off the 2-step verification. Problem solved.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about heroku