[thelist] mail() on windows server

Simon MacDonald simonmacdonald at uk2.net
Sat Dec 27 04:02:52 CST 2008


One of these links may help:

>------Original Message-----
>-From: thelist-bounces at lists.evolt.org [mailto:thelist-
>-bounces at lists.evolt.org] On Behalf Of Bob Meetin
>-Sent: 27 December 2008 03:21
>-To: thelist at lists.evolt.org
>-Subject: [thelist] mail() on windows server
>-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?
>-$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
>-* * Please support the community that supports you.  * *
>-For unsubscribe and other options, including the Tip Harvester
>-and archives of thelist go to: http://lists.evolt.org
>-Workers of the Web, evolt !

More information about the thelist mailing list