· 7 years ago · Mar 07, 2019, 01:26 AM
1config.action_mailer.default_url_options = { :host => 'localhost:3000' }
2 config.action_mailer.delivery_method = :smtp
3
4 config.action_mailer.smtp_settings = {
5 :tls => true,
6 :enable_starttls_auto => true,
7 :address => "smtp.gmail.com",
8 :port => "587",
9 :domain => "gmail.com",
10 :authentication => :plain,
11 :user_name => "xxxxx@gmail.com",
12 :password => "yyyyyy"
13 }