我刚刚设置了Devise(rails认证插件),在注册时发送确认邮件.这涉及到将以下内容放入我的environment.rb文件中:
ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :tls => true,:address => "smtp.gmail.com",:port => 587,:domain => "gmail.com",:authentication => :login,:user_name => "[my email]",:password => "[my pass]" }
我显然不想把它推到github,我的通行证只是坐在那里.这里有标准做法吗?