I would also advise using mailcatcher in development...you don't need
gmail in development -- only maybe when you deploy to test production
settings...
On 04/16/2015 08:19 AM, Sai Ch wrote:
put this code in
config/environments/development.rb
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { :host => 'localhost:3000'
}
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "mail.gmail.com",
:user_name => “[email protected]",
:password => “gmail-password",
:authentication => "plain",
:enable_starttls_auto => true
}
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/55325C90.8080000%40gmail.com.
For more options, visit https://groups.google.com/d/optout.