problem with php form sending email

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
elzbeth
Forum Newbie
Posts: 1
Joined: Sun Dec 07, 2008 1:21 pm

problem with php form sending email

Post 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!!
SteveC
Forum Commoner
Posts: 44
Joined: Thu Dec 04, 2008 2:39 pm
Location: Lansing, MI

Re: problem with php form sending email

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