Instrument the generation of Action Mailer messages. The time it takes to generate a message is written to the log.
invoke mailer defaults as procs only if they are procs, do not convert with to_proc. That an object is convertible to a proc does not mean it's meant to be always used as a proc. Fixes #11533
Please check 4-0-stable for previous changes.