Html temada, form-validate.js ve mail.php dosyaları var. İlgili satıra mail adresi yazsam da gönderi başarısız.
if( empty( $_POST['token'] ) ){
echo 'Error!';
exit;
}
if( $_POST['token'] != 'FsWga4&@f6aw' ){
echo 'Error!';
exit;
}
$name = $_POST['name'];
$from = $_POST['email'];
$phone = $_POST['phone'];
$subject = stripslashes( nl2br( $_POST['subject'] ) );
$message = stripslashes( nl2br( $_POST['message'] ) );
$headers ="From: Form Contact <$from>\n";
$headers.="MIME-Version: 1.0\n";
$headers.="Content-type: text/html; charset=iso 8859-1";
ob_start();
?>
Hi GSRthemes9!
has sent you a message via contact form on your website!
Name:
Email:
Phone:
Subject:
Message:
============================================================
$body = ob_get_contents();
ob_end_clean();
$to = 'tiogok@gmail.com';
$s = mail($to,$subject,$body,$headers,"-t -i -f $from");
if( $s == 1 ){
echo '
Thank You!
Your message has been sent successfully.';
}else{
echo 'Your message sending failed!
';
}
?>