PDA

View Full Version : send mail function from a localhost in php


kosie79
03-09-2004, 06:51 AM
Hi,

im trying to send a form in php to an email address...i keep getting this error. Im running a localhost server...

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\testing\mail3.php on line 10

can somebody give me a step by step guide on how to send the form via mail..

is there a method to send the form via html? im actually designing it in html....


HELP!! need to resolve it 2 hours

CyanBlue
03-09-2004, 12:49 PM
The error message says that there is problem with your SMTP settings specified in the PHP.ini file... Did you look it up??? What does it say around the SMTP setting area???

kosie79
03-10-2004, 04:30 AM
Hi,

Thanks...i managed to get it working...;) I had two php.ini files....so i changed the smtp settings to my isps...and walla it worked...;)

Thanks!

smtp: smtp.tm.net.my