Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['submit']))
  3. {
  4.     $email = $_POST['email'];
  5.     $file = fopen("emaillist.txt","a+");
  6.     fwrite($file,$email."\n");
  7.     fclose($file);
  8.     print_r(error_get_last());
  9.     echo 'You are now subscribed with the email: ';
  10.     echo $email;
  11.     $message = $email . " has subscribed to our newsletter check the text file";
  12.     $from = "lassexl18@gmail.com";
  13.     mail("lassexl20@gmail.com","New Subscriber",$message,"From: $from\n");
  14. }
  15. header("refresh: 5; url=http://www.softwarecaptain.co/");
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement