Hello guys please when i click submit on my form,it doesnt move at all not even a failed message comes up,nothing happens.This is my code below please help.Cheers
Code:
<?php
$to = $_POST['to'];
$from = $_POST['from'];
$bcc = $_POST['bcc'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$headers .= "To: $to \r\n";
$headers = "From: $from\r\n";
$headers .= "Bcc: $bcc \r\n";
$headers .= "Reply-to: $from\r\n";
// send mail
ini_set("sendmail_from", "user@domain.com" );
if (mail($to,$subject,$message,$headers)){
echo "Message sent successfully";
}else{
echo "Error: Sending your message failed";
}
?>
Comment