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!!
problem with php form sending email
Moderator: General Moderators
Re: problem with php form sending email
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".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!!