Publisher review:subscribe or unsubscribe - create an opt-in email list Before actually start mailing to anyone you need a script that you can link to inside every opt-in mail list email to allow subscribers to easily and automatically unsubscribe from the list.
if($id != ""){$emails = file("phpelist.txt"); for($index = 0; $index < count($emails); $index ) { if(ereg("$id", $emails[$index])) { $emails[$index] = ""; $thefile = fopen("phpelist.txt", "w"); for($newindex = 0; $newindex { if($emails[$newindex] != "") { fputs($thefile, "$emails[$newindex]"); } } fclose($thefile); print("This email $id"); print(" has successfully been removed from the"); print(" database."); } }}?>&afont>
subscribe or unsubscribe is a PHP script for Snippets scripts design by php-scripts.com.
It runs on following operating system: Windows / Linux / BSD.
Operating system:Windows / Linux / BSD