#23798 [NEW]: Space not trimmed in x-envelope-to

From: Date: Sun, 25 May 2003 10:42:25 +0000
Subject: #23798 [NEW]: Space not trimmed in x-envelope-to
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40372@lists.php.net to get a copy of this message
From: guidance at g dot yi dot org Operating system: Windows 2000 pro PHP version: 4.3.2RC4 PHP Bug Type: Mail related Bug description: Space not trimmed in x-envelope-to When using blank "To", and only Cc or Bcc to send an email, like below: mail("", "the subject", 'message body', "From: webmaster@$SERVER_NAME\r\n" ."Reply-To: webmaster@$SERVER_NAME\r\n" ."BCC: somebody@server.com\r\n" ."X-Mailer: PHP/" . phpversion()); the receiver mail server will complain user unknown error, if check the raw received mail, will like this: ...... X-Envelope-To: < somebody@server.com> ...... To: ...... Notice there's an extra space in X-Envelope-To header! Anyhow, if "To" is not blank, the received X-Envelope-To is correct. If don't leave space after the colon of Bcc and Cc, the problem could temporarily resolved. -- Edit bug report at http://bugs.php.net/?id=23798&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23798&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23798&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23798&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23798&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23798&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23798&r=support Expected behavior: http://bugs.php.net/fix.php?id=23798&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23798&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23798&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23798&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23798&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23798&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23798&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23798&r=gnused

« previous php.bugs (#40372) next »