Home » Mail » Mail » Bug #856
Tripple Line Feed Error
Details
| Submitted | 2004-02-26 00:36 UTC |
|---|---|
| From | aidan at virtualexplorer dot com dot au |
| Assigned | aidan |
| Status | Closed |
| Package | |
| PHP Version | Irrelevant |
| OS | na |
| Roadmaps | (Not assigned) |
Comments
[2004-02-26 00:36 UTC] aidan at virtualexplorer dot com dot au
Description:
------------
When sending email using the Mail class, I get 3 new lines after the Status: instead of two.
The source of the message sent by Mail.php ( recieved by me ):
-- snip
Status:
You have requested information about the paper:
-- /snip
According to RFC[some number here], The body of the message begins after \n\n, with 3 \n\n\n's I get an extra new line before my message starts. This is a problem.
Thanks for taking the time to examine this report.
[2006-10-19 09:56 UTC] leonard at locomo dot nl
This issue is still existent.
What the original submitter is trying to tell you is that an email header should be followed by 2 newlines, not 3.
Emails generated by Mail.php will have 3 newlines following the header, causing all emails to start with an empty newline (in the body).
As a test you can just send yourself an email using Mail.php. You will notice the empty new line at the beginning of the mail body.
[2006-10-19 10:06 UTC] leonard at locomo dot nl
I'm not sure if this is the correct location for the fix, but at first sight
--- Mail.php.000 2006-07-13 16:15:30.000000000 +0200
+++ Mail.php 2006-10-19 12:04:20.000000000 +0200
@@ -169,7 +169,7 @@ class Mail
}
}
- return array($from, join($this->sep, $lines) . $this->sep);
+ return array($from, join($this->sep, $lines));
}
/**
seems to fix the issue.