I am using ActionMailer and in my mailer model, I have a from set like this
default :from => "from@example.org"
In my environment.rb, I have a different username within
ActionMailer::Base.smtp_settings = {}
but I'd like the from address to override this.. so that the user sees only that. Is this possible? Additionally, when I change my settings within environment.rb, I don't see my changes take place... do I need to restart my rails server to refresh these settings?
===
here are some of my settings:
ActionMailer::Base.smtp_settings = {
:tls => true,
:address => "smtp.gmail.com",
:port => "587",
:domain => '==.org',
:authentication => :plain,
:user_name => '===',
:password => '==='
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…