Rails app + gmail smtp + heroku hosting + godaddy domain
- by sagivo
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.