As per http://php.net/function.mail header should be separated with CRLF not LF.
drupal_mail_send() separates with LF only. patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 234403-mail-revert-3.patch | 1.03 KB | gábor hojtsy |
| #5 | 234403-mail-revert-2.patch | 996 bytes | damien tournoud |
| #4 | mail_revert.patch | 912 bytes | Bevan |
| mail_headers_crlf.patch | 900 bytes | AmrMostafa |
Comments
Comment #1
dries commentedI've committed the patch to CVS HEAD as it is conform the documentation. Lowering to DRUPAL-6 so Gabor can considering fixing this in Drupal 6.
Comment #2
dries commentedComment #3
gábor hojtsyI agree that we should fix this for purity. I took note of this from the php docs page linked however:
In anticipation that this would be a miniscule problem, committed to 6.x. Thanks.
Comment #4
Bevan commentedThis is causing double line breaks to be inserted between headers on multiple systems, which in turn is causing headers to be rendered as part of content. Should be reverted for d6. For d7 we could perhaps detect what mailing system is being used and accordingly whether CRLF or just LF should be set.
Attached is the inverse patch
Comment #5
damien tournoud commentedSo it seems that this patch was committed way too fast. The PHP manual states:
I suggest we document that (see attached patch).
Comment #6
gábor hojtsyI added a reference to this issue and made "MTAs" out of "MTA". Committed to 6.x. Let's commit to 7.x and find out a possibly better path later.
Comment #7
dries commentedCommitted. Thanks all.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
danieldbird commentedI just want you all to know i love you and appreciate the effort.
You are lifesavers.
Daniel.