#30237 [Fbk->Bgs]: Can't set full name on -f 5th mail parameter
| From: | derick@php.net | Date: | Mon, 27 Sep 2004 08:05:53 +0000 |
| Subject: | #30237 [Fbk->Bgs]: Can't set full name on -f 5th mail parameter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66748@lists.php.net to get a copy of this message | ||
ID: 30237
Updated by: derick@php.net
Reported By: rtboon at xs4all dot nl
-Status: Feedback
+Status: Bogus
Bug Type: Mail related
Operating System: Fedora 2
PHP Version: 5.0.1
New Comment:
No bug here, you can not use -f to set a "realname", only an email
address without spaces.
Previous Comments:
------------------------------------------------------------------------
[2004-09-26 02:26:14] rasmus@php.net
Did you change the user your web server is running as? If so, you have
to add this new user to sendmail's list of trusted users. Only a
trusted user is allowed to set a -f
------------------------------------------------------------------------
[2004-09-26 02:06:26] rtboon at xs4all dot nl
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 this bug report at http://bugs.php.net/?id=30237&edit=1