Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // request variables like beneath // important
- // $name=$_REQUEST["name"];
- // multiple recipients
- //$to = $_REQUEST['email1']; // note the comma
- //$to .= $_REQUEST['email2'];
- // subject
- $subject = 'Movie World: Stay Tuned!';
- $message = '
- <html>
- <head>
- <title>Movie World</title>
- </head>
- <body>
- <p>Movie World you would not wanna miss!</p>
- </body>
- </html>
- ';
- // To send HTML mail, the Content-type header must be set
- $headers = 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
- $headers .= 'Bcc: ' . $_REQUEST['email2'] . "\r\n";
- // Additional headers
- $headers .= 'From: Movie World <movie@movieworld.com>';
- // Mail it
- mail($to, $subject, $message, $headers);
- ?>
- <script type="text/javascript">
- alert("Success! Thank you for your enquiry.");
- <!--
- window.location = "form.html"
- //-->
- </script>
Add Comment
Please, Sign In to add comment