Contact us

'; $mail_message .= ''; $mail_message .= ''; $mail_message .= ''; $mail_message .= ''; $mail_message .= '
Hello Admin,
New contact on your website. Please check following details :-
Name : '.$_POST['name'].'
Email : '.$_POST['email'].'
Message : '.$_POST['message'].'
Thanks
'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Create email headers /*$headers .= 'From: '.$_POST['email']."\r\n". 'Reply-To: '.$_POST['email']."\r\n" . 'X-Mailer: PHP/' . phpversion();*/ $to = '[email protected]'; $subject = 'New Contact'; $from = $_POST['email']; // Sending email if(mail($to, $subject, $mail_message, $headers )){ echo "

Your mail has been sent successfully.

"; } else{ echo "

Unable to send email. Please try again.

"; } } ?>