From: prashant at travelingnepal dot com
Operating system: Windows 2002 Server
PHP version: 4.3.2
PHP Bug Type: Mail related
Bug description: Errors appear when i try to send mail
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 bug report at http://bugs.php.net/?id=24761&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24761&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24761&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24761&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24761&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24761&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24761&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24761&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24761&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24761&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24761&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24761&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24761&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24761&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24761&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24761&r=gnused