I have trid the testing script as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</HEAD>
<BODY><?php
$headers = 'From:info@mydomain.com'. "\r\n" .
'Reply-To: [email]info@mydomain.com[/email]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$ret=mail('user@customer.com', 'subject', 'this is the content',$headers,'-finfo@mydomain.com');
echo "<BR/>mail() returned: " . ($ret? "TRUE" : "FALSE") . "<BR/>";
?>
</BODY>
</HTML>
This script works fine at another Linux server. But in the windows server i am using, the result is:
mail() returned: TRUE
but sending no mail at all.
The server setting is like:
Directive Local Value Master Value
sendmail_from [email]me@localhost.com[/email] [email]me@localhost.com[/email]
sendmail_path no value no value
SMTP 213.200.51.11 213.200.51.11
smtp_port 25 25
I can't locate the problem cos I don't have access to server config...
Someone please tell me where the problem is..Thanks