HELP Exchange 2003 and PHP mail() clash HELP HELP HELP
Posted: Sat Feb 21, 2004 6:58 pm
i have a mail() code that works fine with an online website (that already has php configuration (or exchange configuration done). the following code works fine if hosted at dyna host (the online hosting company).
print ("Thankyou ".$Fname." ".$Lname." for your valuable comments");
$EMAIL="ali.abbas@esplans.com";
$SUBJECT="Test email from email_sender.php file script";
$Content="First: ".$Fname."\r\nLast: ".$Lname."\r\nComments: ".$comments."\r\n";
$SENDER = 'toto@mailinator.com'; //Email address of the sender.
$SENDERFULL = 'Harold PHP Quiz Example ' ; // Name of the sender.
$MAILHEADERS .= "CC: test@mailinator.com\r\n";
$MAILHEADERS .= "X-Mailer: PHP\r\n";
$MAILHEADERS .= "X-Priority: 3\r\n";
$MAILHEADERS .= "Return-Path: <".$SENDER.">\r\n";
mail ($EMAIL, $SUBJECT, $Content, $MAILHEADERS);
in the code i have tried with both "r\n" and "\n". both work on dynahost (the online hosting company).
my problem starts when i bring the same piece of code to my machine that is running exchange2003 and windows server 2003,on top of that all i have done is install php from the installer file. the script does not let any email out from this form(code) at all.
i have checked my php.ini and the settings for smtp are correct
what am i missing (please help) and thankyou in advance
print ("Thankyou ".$Fname." ".$Lname." for your valuable comments");
$EMAIL="ali.abbas@esplans.com";
$SUBJECT="Test email from email_sender.php file script";
$Content="First: ".$Fname."\r\nLast: ".$Lname."\r\nComments: ".$comments."\r\n";
$SENDER = 'toto@mailinator.com'; //Email address of the sender.
$SENDERFULL = 'Harold PHP Quiz Example ' ; // Name of the sender.
$MAILHEADERS .= "CC: test@mailinator.com\r\n";
$MAILHEADERS .= "X-Mailer: PHP\r\n";
$MAILHEADERS .= "X-Priority: 3\r\n";
$MAILHEADERS .= "Return-Path: <".$SENDER.">\r\n";
mail ($EMAIL, $SUBJECT, $Content, $MAILHEADERS);
in the code i have tried with both "r\n" and "\n". both work on dynahost (the online hosting company).
my problem starts when i bring the same piece of code to my machine that is running exchange2003 and windows server 2003,on top of that all i have done is install php from the installer file. the script does not let any email out from this form(code) at all.
i have checked my php.ini and the settings for smtp are correct
what am i missing (please help) and thankyou in advance