· 8 years ago · Feb 19, 2018, 07:46 PM
1<?php
2
3$first_name = $_POST['first_name'];
4$surname = $_POST['surname'];
5$email = $_POST['email'];
6$msg = $_POST['message'];
7$to = "****************@gmail.com";
8$subject = "Get in Touch";
9mail($to, $subject, $msg, "From: " . $first_name . $surname);
10echo "Your Message has been sent.";
11header( 'Location: contactformsent.html' ) ;
12?>