Page 1 of 1

problem with php form sending email

Posted: Sun Dec 07, 2008 1:59 pm
by elzbeth
I have loaded WAMP 2.0 and am working on a simple form following instructions in a book. Unfortunately, I keep getting the following message

"Warning: mail() [function.mail]: Failed to connect to mailserver at "local host" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\contact.php on line 14"

plus the email fails to send. I have followed instructions for amending php_ini

What is the problem and how do I resolve it?

Any help would be great!!

Re: problem with php form sending email

Posted: Mon Dec 08, 2008 10:13 am
by SteveC
elzbeth wrote:I have loaded WAMP 2.0 and am working on a simple form following instructions in a book. Unfortunately, I keep getting the following message

"Warning: mail() [function.mail]: Failed to connect to mailserver at "local host" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\contact.php on line 14"

plus the email fails to send. I have followed instructions for amending php_ini

What is the problem and how do I resolve it?

Any help would be great!!
At "local host" - is there really a space in there? If so, that's probably the culprit. Change it to "localhost" or "127.0.0.1".