#33507 [NEW]: Mail From: Bug

From: Date: Wed, 29 Jun 2005 15:26:26 +0000
Subject: #33507 [NEW]: Mail From: Bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81167@lists.php.net to get a copy of this message
From: rhallado at vsp dot com dot br Operating system: Windows 2003 Server PHP version: 5.0.4 PHP Bug Type: Scripting Engine problem Bug description: Mail From: Bug Description: ------------ A tag FROM no header não esta funcionando quando eu coloco: FROM: "Nome" <email@dominio.com>, so funciona com: FROM: email@dominio.com. Reproduce code: --------------- <?php $headers = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . "From: \"Rhallado\" <rhallado@vsp.com.br>\n"; 'X-Mailer: PHP/' . phpversion(); mail('programador@vsp.com.br', 'Titulo', 'Mensagem', $headers) or die ( "Erro ao tentar enviar mensagem" ) ; ?> Expected result: ---------------- <?php $headers = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . "From: \"Rhallado\" <rhallado@vsp.com.br>\n"; 'X-Mailer: PHP/' . phpversion(); mail('programador@vsp.com.br', 'Titulo', 'Mensagem', $headers) or die ( "Erro ao tentar enviar mensagem" ) ; ?> Actual result: -------------- Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:\dsr-video\image\teste.php on line 21 -- Edit bug report at http://bugs.php.net/?id=33507&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33507&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33507&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33507&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33507&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33507&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33507&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33507&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33507&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33507&r=support Expected behavior: http://bugs.php.net/fix.php?id=33507&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33507&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33507&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33507&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33507&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33507&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33507&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33507&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33507&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33507&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33507&r=mysqlcfg

« previous php.bugs (#81167) next »