#30237 [NEW]: Can't set full name on -f 5th mail parameter
| From: | rtboon at xs4all dot nl | Date: | Sun, 26 Sep 2004 00:06:37 +0000 |
| Subject: | #30237 [NEW]: Can't set full name on -f 5th mail parameter | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-66699@lists.php.net to get a copy of this message | ||
From: rtboon at xs4all dot nl
Operating system: Fedora 2
PHP version: 5.0.1
PHP Bug Type: Mail related
Bug description: Can't set full name on -f 5th mail parameter
Description:
------------
I'm not sure whether this is a sendmail or a PHP bug, but since PHP 5 my
scripts fail where I use a 5'th argument like
"-f George Bush <george@oil.com>" (pardon my politics :-) ) where
"oil.com" would be my domain.
I get errors now that Bush@oil.com is not a valid username.
In PHP 4.2.3 this used to work.
When I use "-f george@oil.com", everything is ok.
I do not use safe mode, nor any settings in php.ini.
Reproduce code:
---------------
mail( "me@where_ever.org", "Vote me!", "said it...",
"From: George Bush <george@oil.com>\r\n",
"-f George Bush <george@oil.com>" );
Expected result:
----------------
A mail with in the header:
Return-path: George Bush <george@oil.com>
Actual result:
--------------
In my sendmail log:
Bush@oil.com is an unknown user.
--
Edit bug report at http://bugs.php.net/?id=30237&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30237&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30237&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30237&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30237&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30237&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30237&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30237&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30237&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30237&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30237&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30237&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30237&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30237&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30237&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30237&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30237&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30237&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30237&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30237&r=mysqlcfg