Page 1 of 1

Mail() on windows server incorrectly configured?

Posted: Fri May 26, 2006 10:15 am
by Skittlewidth
I've no knowledge of server administration really but is there any reason why mail() would not work on a windows server? Does it have to be configured differently to a Linux server?

According to the manual it does work slightly differently, but thats as much as I understand. I only ask cos my boss noticed an ancient contact form is not working somewhere, and the simplest test script with mail() doesn't send anything, but will on another server (which unfortunately is linux so its not a fair test).

Running phpinfo reveals that sendmail_path is not set in the PHP core on the windows server.

is that what's causing problems? no error comes up and mail() returns true.

Posted: Fri May 26, 2006 10:25 am
by Skittlewidth
ah no worries, it was the 'sendmail_from' setting that had been changed by Fasthosts and now has to be explicitly overridden with ini_set().

As usual, thanks for telling us, Fasthosts :evil:

Posted: Sun May 28, 2006 9:32 am
by Chris Corbyn
Skittlewidth wrote:As usual, thanks for telling us, Fasthosts :evil:
You could always use something that doesn't rely on the server configuration like PHPMailer or Swift Mailer (signature).