I've been trying to get the mail function to work for several days now and i always get the same message:
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in d:\server_applications\root\http\t1.php on line 6
Although sendmail_from is set and the "From" header is set also...
And i'm running my own SMTP server (localhost)
This is what i have in my php.ini:
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = system@jpstuff.servehttp.com
This is what i have in my source code:
<?php
echo "test: Start sending mail";
$address = "admin@jpstuff.servehttp.com";
$subject = "test - Subject line";
$body = "Mail body";
$mailsend = mail("$address","$subject", "$body", "system@jpstuff.servehttp.com");
print ("$mailsend");
echo "done";
?>
Anyone has a sollution for this problem?
Thanks.




