Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = @trim(stripslashes($_POST['name']));
- $from = @trim(stripslashes($_POST['email']));
- $subject = @trim(stripslashes($_POST['subject']));
- $message = @trim(stripslashes($_POST['message']));
- $to = 'email@email.com'; //replace with your email
- $headers = array();
- $headers[] = "MIME-Version: 1.0";
- $headers[] = "Content-type: text/plain; charset=iso-8859-1";
- $headers[] = "From: {$name} <{$from}>";
- $headers[] = "Reply-To: <{$from}>";
- $headers[] = "Subject: {$subject}";
- $headers[] = "X-Mailer: PHP/".phpversion();
- $h = (implode("\r\n", $headers));
- mail($to, $subject, $message, $h);
- die;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement