I have one small problem. I want to directly send data in our email id, but I get the following warning:
mail() [function.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:\wamp\www\my php\email.php on line 14
$to = "ahsddif@kfdf.com";
$subject = "Contact Us";
$email = $_REQUEST['textlname'] ;
$message = $_REQUEST['message'] ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
Can someone point me in the right direction?