Skip to content

Expose & override the SMTP envelope#477

Merged
mikel merged 1 commit into
mikel:masterfrom
jeremy:smtp-envelope
May 14, 2013
Merged

Expose & override the SMTP envelope#477
mikel merged 1 commit into
mikel:masterfrom
jeremy:smtp-envelope

Conversation

@jeremy

@jeremy jeremy commented Dec 11, 2012

Copy link
Copy Markdown
Collaborator

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

…verridden.

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

Updates all delivery methods to rely on the SMTP envelope.

References mikel#421 and rails/rails#5985
@fiedl

fiedl commented Apr 6, 2013

Copy link
Copy Markdown

This works great, thanks!

+1 for pulling this into master

@mikel mikel merged commit 4875bc2 into mikel:master May 14, 2013
@mikel

mikel commented May 14, 2013

Copy link
Copy Markdown
Owner

Looks good, thanks Jeremy, merged.

@jeremy jeremy deleted the smtp-envelope branch May 14, 2017 20:53
thegcat pushed a commit to planio-gmbh/mail that referenced this pull request Jan 26, 2018
Mail 2.6.6

Security:
* mikel#1097 – SMTP security: prevent command injection via To/From addresses. (jeremy)

Bugs:
* mikel#689 - Fix Exim delivery method broken by mikel#477 in 2.5.4. (jethrogb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants