Posted by:
mikesz
(---.19.173.220.broad.nn.gx.dynamic.163data.com.cn)
Hello, I am a recent convert from Apache2Triad and have been happily using SMTP pointing to my ISP service for years using php4 mail() function. After I installed the latest WAMP I was no longer about to use the php mail function without a series of errors, the most common being:
Warning: mail() [function.mail]: SMTP server response: 551 User not local; please try <forward-path> in C:\wamp\htdocs\testmail.php on line 8
Here is the test script:
<?php
$to = "webmaster@qualityadvantages.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "admin@qualityadvantages.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
?>
it happily works on my ISP linux server by not on my XP box.
The php.ini block is the same one I have been using sucessfully for years:
[mail function]
; For Win32 only.
SMTP = MyISPIPaddress
smtp_port = 25
; For Win32 only.
sendmail_from =
webmaster@qualityadvantages.comAny clues to solving this problem would certainly be appreciated,
TIA, mikesz