php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26706 To-String is cutted at byte 2048
Submitted: 2003-12-23 07:57 UTC Modified: 2003-12-30 12:36 UTC
From: phred at priest dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.3.4 OS: Linux SuSe 9.0
Private report: No CVE-ID: None
 [2003-12-23 07:57 UTC] phred at priest dot com
Description:
------------
In function mail($to, $subject, $body, $header): 

If string $to is bigger than 2048, it is cutted there..

When setting
$to = "Harker Tetter<harker@tetter.com>, Sarter Berker<sarter@berker.com>, ..."
then it will be eventually cutted in between two < > so the mail won't be delivered.

RFC says, that the maximum length of a line in a mail is 512 bytes so php should meet this RFC norm by cutting the to-string appropriatly.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-30 10:16 UTC] sniper@php.net
RTFM: "Note:  The to parameter should not be an address in the form of "Something <someone@example.com>". The mail command may not parse this properly while talking with the MTA (Particularly under Windows)."
 [2003-12-30 12:36 UTC] phred at priest dot com
ok.. my foult. The string is still cutted and the mail will not be sent to the remaining addresses.. this should be said somewhere..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC