Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey, i am working on a windows server 2003 running iis 6, i have php and smtp working, but i can access the localhost somehow through php...
i get this error:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\sLysdal\email.php on line 2the script is:
<?
if(mail("s@*****.org","mah subject","mah message"))
{
echo "ITS ALIVE!!!!";
}
else
{
echo "no";
}
?>
and no,
it dosnt need a password
it have port 25 forwarded
i have set the php.ini options to be localhost on port 25 and a send from email

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |