|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-26 02:26 UTC] rasmus@php.net
[2004-09-27 10:05 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 18:00:01 2025 UTC |
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.