i always get this error when i use
<?php
mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3");
?>
Warning: 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 c:\inetpub\wwwroot\misc\mail.php on line 2
i can't get email from locahost SMTP to my account at mail.mydomain.com
php.ini configuration:
SMTP = localhost
sendmail_from =
me@localhost.com
SMTP service is running on Windows 2003 IIS; connected to dial-up; windows logon is Administrator/two
anyone there2quickly troubleshoot ? please help