Page 1 of 1

php.ini settings

Posted: Tue Oct 26, 2004 6:54 am
by phpnew
Hello All

I am unable to send email it is giving me this error:

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:\program files\apache group\apache\htdocs\contact.php on line 23

I am new to php and believe that I need to change in php.ini
SMTP = localhost
smtp_port = 25

sendmail_from =

I am working on my local machine and would like to test though my yahoo account, is it possible.

Please help me or advise accordingly

Thank you

Posted: Tue Oct 26, 2004 12:58 pm
by kettle_drum
Simple question..but do you have a smtp server installed and is it running? Can you telnet to it?

Posted: Wed Oct 27, 2004 4:16 am
by phpnew
Thanks a Lot kettle_drum I am able to send emails now thank you. One more thing is it absolutly necessary to have a smtp server if yes which one is low cost and good.