/////////////////////////////////////////////////////
// //
// P H P M a i l L i s t //
// Version 1.8.0 //
// //
// Copyright 2002 //
// David Broker //
// http://php.warpedweb.net/ //
// All Rights Reserved //
// //
// In using this script you //
// agree to the following: //
// //
// This script may be used and modified //
// freely as long as this //
// copyright remains intact. //
// //
// You may not distibute this script, or //
// any modifications of it. //
// //
// A link must be provided on the website that //
// uses the script to: //
// http://php.warpedweb.net/ //
// //
// Any breaches of these conditions //
// will result in legal action. //
// //
// This script is distributed with //
// no warranty, free of charge. //
// //
/////////////////////////////////////////////////////
README for PHPMailList Version 1.8.0a
Contents:
PHPMailList is a powerful, yet simple to use, email announcement script.
It allows people to subscribe/unsubscribe through a web-based form, checking
for valid addresses,
The web-based administration module allows the owner to send messages to the list,
subscribe/unsubscribe people, view the list of subscriber, and configure the script.
Installation is simple, and configuration of confirmation messages, welcome messages
and goodbye messages, as well as signatures are all maintained through the
password protected administration.
Here is a list of files that should be included in this distribution:
- readme.html
This file.
- maillist.php
The php script which controls the mailing and subscriptions.
- list.dat
The file where the email addresses are stored.
- ml_config.dat
The file where configuration details are stored.
- Requirements:
- PHP Version 4.0.2 or greater.
It is best to make sure you have the latest version installed to ensure the script works as intended.
- MAIL Options must be configured correctly on your server.
Try this address http://www.php.net/manual/en/function.mail.php if you need more
information or contact your system's administrator for more info.
- VERY basic knowledge of PHP.
This is required to install the script. You need to edit a few
lines of the script, all of which is described in detail.
- The browser you use for administration of the script must have Javascript enabled, preferable a version 5+ browser.
- Edit the scripts:
In maillist.php there is one line of code to edit.
This should be set to the full server path to the configuration file
(ml_config.dat). If using Windows you must use double backslashs (\\).
EG: $config_file = "c:\\www\\config.dat";
$config_file = "/home/user/maillist/config.dat";
- Upload the files and set the permissions.
* Note that it is preferable to keep the ml_config.dat and list.dat files
in a seperate directory to the script, where they cannot be accessed by
the public. *
- Upload the files to the server.
- If using Unix set the permissions as follows:
list.dat: CHMOD 666 (or 777 if that fails)
ml_config.dat: CHMOD 666 (or 777 if that fails)
- Configure the Script:
First access the administration module like so:
http://www.path.to/script/maillist.php?action=admin
This will bring up a Logon screen.
Log on using:
Username: user
Password: pass
You will see 4 options.
Select "Administration" and click "Submit".
From this page you can change the settings of the entire script.
The only lines you really HAVE to edit are the first 5, there are:
The rest are entirly optional, the script will function fine if you leave them as their default:
- Default # Subscribers/page:
The default number of email addresses shown per page when you "View Subscribers".
- Banned Addresses
Email addresses that are not allowed to subscribe.
One email address to each line only.
- Signature
What you type in here will be included on the bottom of all welcome messages and messages you send to the subscribers.
- Send Email Asking for confirmation?
If this is ticked a subscriber will recieve an email asking them to confirm the subscription of their email address.
- Confirmation Subject.
The subject of the above mentioned letter.
- Confirmation Message
The body of the above mentioned letter.
- Send Welcome Message?
Will send a welcome message on sucessful subscription if ticked,
- Welcome Message Subject
The subject of that message.
- Welcome Message
The body of that message.
- Send Goodbye Message?
Will send a message on unsubscription if ticked.
- Goodbye Message Subject
The subject of that message.
- Goodbye Message
The body of that message.
Note On Shortcuts:
There are a number of "shortcuts", as I call them, built into the script.
These allow for the proper working of the confirmation function as well as other messages.
You just need to include these in the messages.
Here is an example:
"To confirm your subscription to %list_name% please visit this address: %confirm_url%."
The script will automatically replace %list_name% with the name of the list and %confirm_url%
with the URL the subscriber needs to go to to confirm their subscription.
Here is a list of the shortcuts:
%list_name% = The name of the list.
%email% = The email address the email is being sent it.
%confirm_url% = URL user must go to to confirm subscription.
%subscribe_url% = URL users go to to resubscribe.
%unsubscribe_url% = URL where user can unsubscribe.
These shortcuts do not work when sending messages to the list, only in confirmation, welcome and goodbye messages.
- Using the Script
- Subscribing/Unsubscribing
There are 2 ways to subscribe/unsubscribe to the list.
- Just point your web browser to the script:
EG: http://www.mysite.com/maillist.php.
And you will see a subscription form. Just enter your email address to add/remove yourself from the list.
- You can use a form on another page to send the subscription request. It would look like this:
Subscribe:
<form method="post" action="http://www.path.to/script/maillist.php">
<br><input type="text" name="email" value="Your Email Address" size="20">
<br><input type="radio" name="action" value="sub" checked>Subscribe
<br><input type="radio" name="action" value="unsub">Unsubscribe
<br><input type="submit" value="Submit"></form>
- Administration
To access it just go to the URL of the script like so:
http://path.to/script/maillist.php?action=admin
Note the "action=admin" this gives you access the the logon screen.
There are 3 other options in the administration module than what was described above:
- Send a message. Pretty simple just type your subject/message in the text boxes and press send. Your will be asked to
confirm the message before really sending it. A copy will be sent to the owner's email address.
- View Subscribers. Shows a count and list of subscribed email addresses.
- Add/Remove Subscribers. Allows you to clear all subscribers, add single subscribers or many at once, and remove some subscribers.
That's all there is to it!
27-11 V 1.8.0a
- Fixed bug with line feed/returns in email headers. Caused email rejection from some servers.
27-11 V 1.8.0
- Fixed tiny check box bug in admin_print_config_form() (Jim )
- Fixed problem with emails that bounce, emails now return to sender. (Win only bug(?))
Fixed bug in valid_email() function (was validating everything).
- Changed number of subscribers per page options & the default.
- A few cosmetic changes.
01-07-01 V 1.7.0
- Improved number of subscribers script can handle.
- Removed shortcut options from general sending, now only works in welcome/goodbye/confirmation messages.
- Fixed Valid_email(), no longer checks MX/DNS records when server OS is Win32. These functions did not work on Windows (but it was undocumented in the PHP manual until now).
- Seperated list of subscribers. Options now to view 10, 25, 50 or 100 per page. (Javascript required)
- Fixed bug in admin- add subscribers. It sent confirmation messages instead of welcome messages & vice-versa.
- Added more header info in list messages.
- Added config option to set the default number of subscribers shown per page.
21-04-01 V 1.5.4 (not released)
- Many more bug fixes (whoops!)
- When sending a email asking for confirmation, the script will also include
a "code" in the URL to visit. This code verifies the subscribers validity,
as it is generated by the script & sent in the email.
- Emails sent to list will also be sent to list owner.
- HTML Readme file.
15-04-01 V 1.5.2
- Many bug fixes.
- Fixed Admin-Remove subscribers, changed to select list instead of check boxes.
- Re-organised many functions, including subscribe(), unsubscribe().
- Recoded many parts for optimization.
10-04-01 V 1.5.0
- New Admin functions:
- Webbased configuration of script, including welcome messages, etc.
- Ability to ban addresses.
- Some little shortcuts added when sending messages, %email%, %list_name%, etc.
- A signature to stick on end of the message.
- Optional includsion of sig when sending.
- Advanced administration to add/remove subscribers.
- Remove all subscribers.
- Remove some subscribers from a check list.
- Add single address with option to send welcome/confirmation letter.
- Add many addresses with option to send welcome/confirmation letter.
- Optional welcome messages, goodbye messages.
- Easier installation.
- Option to send email asking for confirmation of subscription.
- Check for blank fields in config.
- Removed bug which caused unwanteded \'s when sending mails.
18-03-01 V 1.0a
- Tiny bug fix that caused an error in the data file when someone unsubscribed.
17-03-01 V 1.0
- Initial release.
- Subscribe/Unsubscribe to a mailing list.
- Admin function to send mailings, view subscibers and add/remove people.
- Get "Bcc:" to work consistantly for unlimited subscribers.
- Fix view subsubscribers bug.
- Fix valid email bug.
- Combine view subscribers & remove subscribers into one "Subscriber Administration" section.
- Ability to customize error messages.