environment文件里:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com", :port => 587, :authentication => 'plain', :user_name => 'xxxxx', :password => 'xxxxx', :enable_starttls_auto => true }本文共 258 字,大约阅读时间需要 1 分钟。
environment文件里:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com", :port => 587, :authentication => 'plain', :user_name => 'xxxxx', :password => 'xxxxx', :enable_starttls_auto => true }转载于:https://www.cnblogs.com/xiaomengzhang/p/3229163.html