mikel/mail — pull request #477 by jeremy (2012-12-11 07:00:01+00:00)
Title: Expose & override the SMTP envelope

The envelope From address defaults to `return_path || sender || from_addrs.first`.
The envelope To address defaults to `destinations` (to + cc + bcc).

Set them yourself using `smtp_envelope_from` and `smtp_envelope_to`.

The sendmail, smtp, and smtp_connection delivery methods no longer worry about return_path vs sender vs from; they just use the `message.smtp_envelope_from` address.

References #421 and rails/rails#5985