This project is archived and is in readonly mode.

#2607 ✓committed
Joel Chippindale

Sent_on should default to now

Reported by Joel Chippindale | May 5th, 2009 @ 09:38 AM

Sent_on should default to now in ActionMailer.

Currently it has no default. If you don't set sent_on then your mail will be sent without a date header. This has unpredictable results because although most mail server will insert a date header (defaulting to now) when the date header is missing not all will do so.

Defaulting to Time.now follows the principle of least surprise.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages