Showing results for 
Search instead for 
Did you mean: 

PHP configuration to send mail from Windows Server

Posts: 33
Registered: 30-07-2007

PHP configuration to send mail from Windows Server


I'm running a webserver from home using W2K, and Non MS emailserver + webserver.

It all runs fine, but I've installed some PHP packs (forum+helpdesk), but I am getting an error when it tries to send an email from the helpdesk:

[Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in <path>blah.php on line n

I get a PHP error if I don't specify an SMTP server in the forum config (presumably the same cause), but when I specify an SNTP server then it works flawlessly

I've checked my php.ini file and it is configured correctly - but I can't make this error go away.

All other parts of the sites work fine.

PHP.ini extract
[mail function]

SMTP = localhost
;smtp_port = 25
sendmail_from =

See the error yourself: (works fine when emailing with SMTP set in forum config)