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 PROTECTED]>, so funciona com:
FROM: [EMAIL PROTECTED]
Reproduce code:
---------------
<?php
$headers =
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
"From: \"Rhallado\" <[EMAIL PROTECTED]>\n";
'X-Mailer: PHP/' . phpversion();
mail('[EMAIL PROTECTED]', '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\" <[EMAIL PROTECTED]>\n";
'X-Mailer: PHP/' . phpversion();
mail('[EMAIL PROTECTED]', '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