you can use this php page I have named demo-contacts.php
<?php
if( isset($_POST['name']) )
{
$to = 'youremail@yoursite.com'; // Replace with your email
$subject = $_POST['subject'];
$message = $_POST['message'] . "\n\n" . 'Regards, ' . $_POST['name'] . ' - ' . $_POST['email'] . '.';
$headers = 'From: ' . $_POST['name'] . "\r\n" . 'Reply-To: ' . $_POST['email'] . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
if( $_POST['copy'] == 'on' )
{
mail($_POST['email'], $subject, $message, $headers);
}
}
?>
and this form on a separate page named contact.php
<form action="demo-contacts.php" method="post" id="sky-form" class="sky-form">
<header>Contact <strong>Form</strong></header>
<fieldset>
<div class="row">
<section class="col col-6">
<label class="label">Name</label>
<label class="input"> <i class="icon-append icon-user"></i>
<input type="text" name="name" id="name">
</label>
</section>
<section class="col col-6">
<label class="label">E-mail</label>
<label class="input"> <i class="icon-append icon-envelope-alt"></i>
<input type="email" name="email" id="email">
</label>
</section>
</div>
<section>
<label class="label">Subject</label>
<label class="input"> <i class="icon-append icon-tag"></i>
<input type="text" name="subject" id="subject">
</label>
</section>
<section>
<label class="label">Message</label>
<label class="textarea"> <i class="icon-append icon-comment"></i>
<textarea rows="4" name="message" id="message"></textarea>
</label>
</section>
<section>
<label class="checkbox">
<input type="checkbox" name="copy" id="copy">
<i></i>Send a copy to my e-mail address</label>
</section>
</fieldset>
<footer>
<button type="submit" class="button">Send message</button>
</footer>
<div class="message"> <i class="icon-ok"></i>
<p>Your message was successfully sent!</p>
</div>
</form>
I also used this stylesheet for the form which you can feel free to download from my website at this link http://www.dewetcomputers.com/js/form/sky-forms.css
And this minified Jquery which you can download http://www.dewetcomputers.com/js/form/jquery.form.min.js
Also if you would like to see what the form looks like you can see it working here http://www.dewetcomputers.com/contact.php
<link rel="stylesheet" href="js/form/sky-forms.css" type="text/css" media="all">
Feel free to ask any other questions or if you run into any other problems