Possible Duplicate:
how to test php email using WAMP
Hey everyone,
First off I am new to PHP and webmail service. Please forgive me if I overlook anything important.
I have a downloads page, when clicked must redirect to a different page to collect user data (email,name). After the form has been filled I want to redirect him to complete his download.
this is the php code for the mail page collects and sends data
<?php
$name = $_POST['name_first'];
$mail = $_POST['email'];
$number = $_POST['phone_number'];
echo "Name : $name";
echo '<br>';
echo "Email-ID : $mail";
echo '<br>';
echo "Phone-Number : $number";
$email_message = "first name: {$name} email is {$mail} number is {$name} ";
mail('vinoth.33@gmail.com', 'Form Response', $email_message);
?>
mail() function is not working giving me an error saying that smtp port is not configured, although after taking some advice from the forums and configuring php.ini...it still seems to not work.
This is the actual error I am getting please help. Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()