where the above php code is embedded.
<?php $name = $_POST['u_name']; $email = $_POST['u_email']; $message = $_POST['u_message']; $from = 'mysite@site .com'; $to = 'contact@yoursite .com'; $subject = 'Student Admission'; $body = "From: $namen E-Mail: $emailn Message:n $message"; if ($_POST['submit']) { if (mail ($to, $subject, $body, $from)) { echo '<p>Your message has been sent!</p>'; } else { echo '<p>Something went wrong, try again!</p>'; } } ?>
Question and answer is powered by AnsPress.io