Search code examples
ruby-on-railsrubyruby-on-rails-3mailer

Rails 3 Mailer :date


What is the default for :date option set to if none is specified in the mail action?

It should just be Time.now, yes?


Solution

  • If not set, the header will be set by the delivery agent (generally your SMTP server), so it depends on who you are sending your mail through. Any good one will use the current server time with the correct offset however.