php.ini settings

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpnew
Forum Newbie
Posts: 18
Joined: Tue Oct 12, 2004 7:40 am

php.ini settings

Post 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
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Simple question..but do you have a smtp server installed and is it running? Can you telnet to it?
phpnew
Forum Newbie
Posts: 18
Joined: Tue Oct 12, 2004 7:40 am

Post 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.
Post Reply