Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['submit']))
- {
- $email = $_POST['email'];
- $file = fopen("emaillist.txt","a+");
- fwrite($file,$email."\n");
- fclose($file);
- print_r(error_get_last());
- echo 'You are now subscribed with the email: ';
- echo $email;
- $message = $email . " has subscribed to our newsletter check the text file";
- $from = "lassexl18@gmail.com";
- mail("lassexl20@gmail.com","New Subscriber",$message,"From: $from\n");
- }
- header("refresh: 5; url=http://www.softwarecaptain.co/");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement