It would be nice if there was an option to turn off the prepended message. Especially in HTML mail, the message might mess up the eventual output. When showcasing a website to clients they want to see the exact message that was sent out, any additional text can confuse them.
Instead of the prepended message, an additional e-mail header can be added so this info is still available. Also bcc and cc addresses should go into custom e-mail headers so they can be read while developing.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | reroute_email.turn_off_prepends_for_d7_1221524_13.patch | 12.18 KB | rfay |
| #12 | reroute_email.turn_off_prepends_1221524_12.patch | 5.36 KB | rfay |
| #10 | reroute_email.turn_off_prepends_1221524_10.patch | 4.2 KB | rfay |
| #4 | reroute-headers-1221524-4.patch | 4.2 KB | cyberwolf |
| #1 | reroute-headers-1221524-1.patch | 4.2 KB | cyberwolf |
Comments
Comment #1
cyberwolf commentedAttaching a patch for the D6 branch.
Comment #2
zilverdistel commentedsubscribing
Comment #3
zilverdistel commentedI'd use "... when the mail is being rerouted."
I'm not sure why this has to be changed? Won't this prevent passing through the e-mails to addresses in the pass-through list?
Comment #4
cyberwolf commentedI changed the description as you suggested.
The current code inside the conditional if (in_array($to, $addresslist)) is actually useless, as $message['to'] already equals $to. As a bit earlier you find this code:
So there is no reason to set it again. That's why I removed that part.
Comment #5
zilverdistel commentedComment #6
adamgerthel commentedWhat does this alter exactly? The best thing would be the ability to turn on / off the reroute message via a checkbox @ admin/config/development/reroute_email
Would love that in D7 as well.
Comment #7
cyberwolf commentedIt does exactly that! Additionally, it adds some extra e-mail headers so you are still able to identify where the mail was actually intended to go:
Comment #8
adamgerthel commentedNice! The only thing missing is that it gets committed and added to the D7 branch as well
Comment #9
rfayI support this approach.
Comment #10
rfayStraight reroll of #4 so it applies.
Comment #12
rfayCommitted to 6.x-1.x: 08807b9
I have to confess to making some verbiage changes, and I put the master checkbox at the top of the form.
Comment #13
rfayHere it is for D7, with the tests fixed up (and an added test for the new headers and lack of body injection).
Comment #14
rfayCommitted to 7.x-1.x: 35efbcb