php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33507 Mail From: Bug
Submitted: 2005-06-29 17:26 UTC Modified: 2005-06-29 23:03 UTC
From: rhallado at vsp dot com dot br Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.4 OS: Windows 2003 Server
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rhallado at vsp dot com dot br
New email:
PHP Version: OS:

 

 [2005-06-29 17:26 UTC] rhallado at vsp dot com dot br
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-29 17:35 UTC] tony2001@php.net
Speak English, please.
 [2005-06-29 18:21 UTC] rhallado at vsp dot com dot br
When I put in HEADER "From: email@dominio.com", I function correctly, but when I place "From: \"Name\" <email@dominio.com>" I do not function, he returns the following error: 
Warning: mail() [function.mail]: SMTP server response: 501 Syntax error in parameters or arguments in d:\virtuais\leiloesmt.lel.br\wwwroot\conn\conn.php on line 114
 [2005-06-29 23:03 UTC] rhallado at vsp dot com dot br
When I put in HEADER "From: email@dominio.com", function correctly,
but when I place "From: \"Name\" <email@dominio.com>" not function,
he returns the following error: 
Warning: mail() [function.mail]: SMTP server response: 501 Syntax error
in parameters or arguments in
d:\virtuais\leiloesmt.lel.br\wwwroot\conn\conn.php on line 114
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 07:00:01 2025 UTC