Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $firstname = $_POST['firstname'];
- $value2 = $_POST['value2'];
- $value3 = $_POST['value3'];
- $toApplicant = $_POST['ApplicantsEmail'];
- $to = 'your@email.com';
- // this is taking care of the e-mail
- $subject = "THIS-IS-YOUR-SUBJECT";
- $content =
- '<p><b>First Name: </b>' . $firstname . '</p></br>' .
- '<p><b>Filed One: </b>' . $value2 . '</p></br>' .
- '<p><b>Filed One: </b>' . $value3 . '</p></br>';
- // To send HTML mail, the Content-type header must be set
- $headers = "Return-Path: YOUR NAME <your@email.com> \r\n";
- $headers .= "From: YOUR NAME <your@email.com> \r\n";
- $headers .= "Content-type: text/html; charset=UTF-8; \r\n";
- // Mail it and redirect if success or fail
- if (mail($to, $subject, $content, $headers) && mail($toApplicant, $subject, $content, $headers))
- echo 'MAIL SENT!';
- else
- echo 'MAIL NOT SENT!';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement