#24761 [Opn->Fbk]: Errors appear when i try to send mail
| From: | iliaa@php.net | Date: | Wed, 23 Jul 2003 00:53:33 +0000 |
| Subject: | #24761 [Opn->Fbk]: Errors appear when i try to send mail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44548@lists.php.net to get a copy of this message | ||
ID: 24761
Updated by: iliaa@php.net
Reported By: prashant at travelingnepal dot com
-Status: Open
+Status: Feedback
Bug Type: Mail related
Operating System: Windows 2002 Server
PHP Version: 4.3.2
New Comment:
What is the name & version of the SMTP server you are using?
Does the problem still occur if you remove the space between the "bcc:"
and the e-mail address?
Previous Comments:
------------------------------------------------------------------------
[2003-07-22 19:52:04] prashant at travelingnepal dot com
Description:
------------
Dear Sir,
I just have installed Php 4.3.2 and when i try to use the mail function
it says the following error:
Warning: mail(): SMTP server response: 501 Syntax error in parameters
in [File Directory] on line [Line Number]
Reproduce code:
---------------
<?php
$recipient="me@mymail.com";
$subject="Test Mail" ;
$message.="Test Mail\n";
$headers .= "From: <Test@test.com>\n";
$headers .= "X-Sender: <test@test.com>\n";
$headers .= "Return-Path: <$email>\n";
$headers .= "bcc: me@mymail1.com\n";
$success=mail($recipient,$subject,$message,$headers);
unset($subject);
unset($message);
unset($header);
if ($success) { echo"Your Message has been send";
}
?>
Expected result:
----------------
To send me a mail at me@mymail.com from test@test.com and also bcc to
me@mymail1.com and says "Your Message has been send".
Actual result:
--------------
Warning: mail(): SMTP server response: 501 Syntax error in parameters
in [File Directory] on line [Line Number]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24761&edit=1