Guest User

Untitled

a guest
Dec 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?php // request variables like beneath // important
  2. // $name=$_REQUEST["name"];
  3. // multiple recipients
  4. //$to = $_REQUEST['email1']; // note the comma
  5. //$to .= $_REQUEST['email2'];
  6. // subject
  7.  
  8. $subject = 'Movie World: Stay Tuned!';
  9.  
  10. $message = '
  11. <html>
  12. <head>
  13. <title>Movie World</title>
  14. </head>
  15. <body>
  16. <p>Movie World you would not wanna miss!</p>
  17. </body>
  18. </html>
  19. ';
  20.  
  21. // To send HTML mail, the Content-type header must be set
  22. $headers = 'MIME-Version: 1.0' . "\r\n";
  23. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  24. $headers .= 'Bcc: ' . $_REQUEST['email2'] . "\r\n";
  25. // Additional headers
  26. $headers .= 'From: Movie World <movie@movieworld.com>';
  27.  
  28. // Mail it
  29. mail($to, $subject, $message, $headers);
  30.  
  31.  
  32. ?>
  33.  
  34. <script type="text/javascript">
  35. alert("Success! Thank you for your enquiry.");
  36. <!--
  37. window.location = "form.html"
  38. //-->
  39. </script>
Add Comment
Please, Sign In to add comment