[thelist] mail() on windows server
Bob Meetin
bobm at dottedi.biz
Fri Dec 26 21:20:50 CST 2008
The script below works on linux/apache servers fine but on a windows
server it fails to send email; the PHP works, but no delivery. I
checked my spam service to see if it got caught.
from phpinfo:
System: Windows NT WEBB26 5.2 build 3790
sendmail_path: no value
Internal Sendmail Support for Windows: enabled
Path, something else? 'fraid windows is not in my bag of tricks, so
just guessing?
<?php
$to = "bobm at dottedi.biz";
$from = "From: customer_service at wherever.com";
$subject = "Contact form";
$headers = "From: me at mycompany.com\r\nReply-To: someone_else at mycompany.com";
$my_body = "test test";
mail ($to, $subject, $my_body, $from);
mail("$to", "$subject", "$my_body", "$headers");
echo "finished<br>";
// phpinfo(); // just to see
?>
More information about the thelist
mailing list