Contact Form

This is a PHP Script for sending messages to your email, you should replace info@example.com to your email to start receive messages.

File Location: mail/contact.php

$to = "info@example.com"; // Change this email to your //
$subject = "$m_subject:  $name";
$body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\n\nEmail: $email\n\nSubject: $m_subject\n\nMessage: $message";
$header = "From: $email";
$header .= "Reply-To: $email";	

Last updated