ID:               24761
 User updated by:  prashant at travelingnepal dot com
 Reported By:      prashant at travelingnepal dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Mail related
 Operating System: Windows 2002 Server
 PHP Version:      4.3.2
 New Comment:

Dear Sir,
Thank you very much for your kind cooperation. Now php mail seems to be
working fine by removing the 'space' after 'bcc' or in 'recipient'
address. But my question is, can i able to send email without removing
space after bcc because i have used this mailform script for 100's of
form. So can you please suggest me some idea... Any help would really
appreciated...

Thank you once again for your kind cooperation,
Prashant


Previous Comments:
------------------------------------------------------------------------

[2003-07-22 19:53:32] [EMAIL PROTECTED]

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?

------------------------------------------------------------------------

[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="[EMAIL PROTECTED]";
$subject="Test Mail" ;

$message.="Test Mail\n";

$headers .= "From: <[EMAIL PROTECTED]>\n";
$headers .= "X-Sender: <[EMAIL PROTECTED]>\n"; 
$headers .= "Return-Path: <$email>\n";
$headers .= "bcc: [EMAIL PROTECTED]";

$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 [EMAIL PROTECTED] from [EMAIL PROTECTED] and also bcc to
[EMAIL PROTECTED] 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

Reply via email to