Forum: Ruby on Rails Rails- Devise- confirmable- confirmation email not received

Posted by Sajeev Zacharias (sajeevzacharias4)
on 2013-03-09 23:23
(Received via mailing list)
In an application I use devise authentication. I added 
confirmable.During
sign up, message is that email has been sent. But email is not received 
in
my gmail account. How can I solve this problem. Do I need to add other
options as we do with actionmailer such as gmail port address, or 
sendmail
such things. Please help.
Posted by Sajeev Zacharias (sajeevzacharias4)
on 2013-03-09 23:39
(Received via mailing list)
I am sorry. I found out. I needed to add the following lines to
config/environments/development.rb

config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    :enable_starttls_auto => true,
    :address => "smtp.gmail.com",
    :port => 587,
    :domain => "mydomain.com",
    :authentication => :login,
    :user_name => "myemaiL@mydomain.com",
    :password => "mypass"
  }
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.