php
if(isset($_POST['message'])){
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = 'you@example.com';
$subject = 'Site Contact Form';
$headers = 'From: '. $email . "\r\n" .
'Reply-To: '. $email . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$status = mail($to, $subject, $message, $headers);
if($status == TRUE){
$res['sendstatus'] = 'done';
//Edit your message here
$res['message'] = 'Form Submission Successful';
}
else{
$res['message'] = 'Failed to send mail. Please mail me to you@example.com';
}
echo json_encode($res);
}
?
Clean - One Page Personal Portfolio Hello, my name is John Doe and I am Full Stack Web Developer creating modern and responsive Web Application Toggle navigation John Doe Home Services Works Skills Testimonials Contact This is what I do No one lights a lamp in order to hide it behind the door: the purpose of light is to create more light, to open people’s eyes, to reveal the marvels around. Web Design Good things come to those who wait, but only the things left by those who hustle Web Programming Good things come to those who wait, but only the things left by those who hustle Branding Good things come to those who wait, but only the things left by those who hustle Consultation Good things come to those who wait, but only the things left by those who hustle Collect from 模板之家 My works No one lights a lamp in order to hide it behind the door: the purpose of light is to create more light, to open people’s eyes, to reveal the marvels around. Crazy Shark Lily likes to play with crayons and pencils Funny Tortoise Lily likes to play with crayons and pencils The Hat Lily likes to play with crayons and pencils Bang Bang Lily likes to play with crayons and pencils Crypton Dude Lily likes to play with crayons and pencils Don't Poke Lily likes to play with crayons and pencils My Skills No one lights a lamp in order to hide it behind the door: the purpose of light is to create more light, to open people’s eyes, to reveal the marvels around. 80 Programming 90 Design 85 Marketing 95 UI / UX ARE YOU READY TO START? I'm available for freelance projects. Hire Me What my clients say No one lights a lamp in order to hide it behind the door: the purpose of light is to create more light, to open people’s eyes, to reveal the marvels around. Work with John was a pleasure. He understood exactly what I wanted and created an awesome site for my company. Pino Caruso I'm really happy with the results. Get 100% satisfaction is difficult but Alex got it without problems. Jane Doe Drop me a line No one lights a lamp in order to hide it behind the door: the purpose of light is to create more light, to open people’s eyes, to reveal the marvels around. Name Email Send Message Made with in Nottingham © 2015 John Doe | Images: Unsplash & Zoomwalls