Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Form Mailer
- $form = $_POST;
- if($form) {
- $user_email = $form['pwsubscribe'];
- $to = $form['recipient'];
- $subject = 'New newsletter subscription.';
- $headers = 'From: PW Limited <info@pwlimited.co.uk>';
- $message = 'You have received a new newsletter subscription.' . "\n";
- $message .= 'The users e-mail is: ' . $user_email;
- mail($to, $subject, $message, $headers);
- header('Location: newsletter_thankyou.html');
- exit;
- }
- ?>
Add Comment
Please, Sign In to add comment