Computing.Net > Forums > Programming > PHP: cant send emails using local smtp server

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP: cant send emails using local smtp server

Reply to Message Icon

Name: sLysdal
Date: July 3, 2009 at 14:23:05 Pacific
OS: Windows Vista
Subcategory: General
Comment:

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 2

the 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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: PHP: cant send emails using local smtp server

Send email+attachment by bat file www.computing.net/answers/programming/send-emailattachment-by-bat-file/16774.html

Sending email through DOS www.computing.net/answers/programming/sending-email-through-dos/14443.html

Send Email using Outlook and Outlook Express www.computing.net/answers/programming/send-email-using-outlook-and-outlook-express-/19421.html