$ft .= following URL:n ; $ft .= http:// . (Web hosting services)

$ft .= following URL:n ; $ft .= http:// . $_SERVER[ HTTP_HOST ] . dirname($_SERVER[ PHP_SELF ]) . /remove.php?u= . $row[ user_id ] . &ml= . $_POST[ ml_id ]; } else { $ft = You are receiving this email because you subscribed ; $ft .= to one or moren mailing lists. Visit the following ; $ft .= URL to change your subscriptions:n ; $ft .= http:// . $_SERVER[ HTTP_HOST ] . dirname($_SERVER[ PHP_SELF ]) . /user.php?u= . $row[ user_id ]; } $msg = stripslashes($_POST[ msg ]) . nn ; $msg .= ————–n ; $msg .= $ft; $email = new SimpleMail(); $email->send($row[ email ], stripslashes($_POST[ subject ]), $msg, $headers) or die( Could not send email. ); } } break; } } header( Location: admin.php ); ?> That s it for now. You still have the user functions to worry about, but you ll tackle those in a bit. For now, load a few of these pages in your browser to see them in action; then we ll figure out how they work. 5. The first page of the mailing list application you want to take a look at is the Mailing List Administrator page. Load admin.php in your browser. As you can see in Figure 14-1, you can create a new mailing list, delete an existing mailing list, or send a quick message to users. Feel free to create a couple of new mailing lists. Go crazy, have fun, get wacky. Good. Let s move on. 6. Click the link at the bottom of the Mailing List Administrator page, Send a quick message to users. A new page appears where you can compose a new message and send it to either a single mailing list, or all users (see Figure 14-2). If you just created these pages, you don t have any users yet. You can compose a message, but it won t go to anyone. You ll need to create the user pages first, which you ll do shortly. 491 Mailing Lists
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply