Announce Mail - Manual
Copyright
Notice
This script is a freeware.
You may distribute it by any way BUT you may not modify it!
Installation
Upload
all files onto your server.
Set permission (chmod) of the data directory
to 777
Run setup.php. It installs
the table we will need and creates some files.
Go to the admin area
(both username and password are 'admin') and set all variables.
Now you can start to use the script. New
users may join your newsletter by going to 'index.php',
existing users can edit their accounts at 'index.php?action=login'.
Each new user gets an email with a confirmation link. Until the user doesn't
click on that link, he/she can't get the newsletter.
Customization
All
public pages are based on 'templates'. These are a common HTML pages editable
in your favorite editor with some special tags which will be replaced by any
value by the scripts. These tags look like #%someword%#. If you don't want some
of these values to be available, just remove them from your templates. All the
templates may be found in the 'data/templates' directory. On the top of each
public page is added content of file '_header.txt', on the bottom is added content
of file '_footer.txt'. Both these files may be found in the 'templates' directory
as well.
Below is a short description of each template and list of used
variables.
To show the page where a new user can join your newsletter
is used template 'user_join.html'. These variables may be used (Note:
Each of the variables in that template shows nothing if the form is loaded for
the first time, however these are replaced by entered values if the form
has been rejected by the system for some reason.):
|
#%info%# |
Reason why the form has been rejected |
|
#%username%# |
Entered username |
|
#%password%# |
Entered password |
|
#%name%# |
Entered name |
|
#%email%# |
Entered email |
To show a 'Thank You' page is used template 'user_joined.html'. Used variables:
|
#%username%# |
Username of the new user |
|
#%password%# |
Password of the new user |
|
#%name%# |
Name of the new user |
|
#%email%# |
Email of the new user |
Now the new user gets an email
which contain a confirmation link. This email is based on template 'email_confirm.txt'.
The first line of this template must begin to the word 'Subject:' and below
this line must be one blank line. This template has one variable only:
#%confirm_url%#
- this is replaced by the confirmation link.
Once the new user clicks
on the confirmation link, he/she gets a page which is based on template 'user_confirmed.html'.
This template contains no variables.
Existing users can log in at 'index.php?action=login'.
The login form is based on template 'user_login.html'. There are these
variables available:
|
#%info%# |
If the user entered wrong username or password, it shows this info. |
|
#%username%# |
If the user entered wrong username or password, it shows the entered username. |
|
#%password%# |
If the user entered wrong username or password, it shows the entered password. |
Once the user is logged in, a
form to edit user's info is displayed. This form is based on template 'user_edit.html'.
These variables are used:
|
#%info%# |
If the new data has been just saved or if any error has been found, it shows that info |
|
#%username%# |
Username of the user |
|
#%password%# |
Password of the user |
|
#%name%# |
Name of the user |
|
#%email%# |
Email of the user |
As you may noticed, this template
contains also an unsubscribe link which looks like:
'index.php?action=unsubscribe&username=#%username%#&password=#%password%#'
Once
an user clicks on this link, he/she is unsubscribed and the account is deleted.
The unsubscribed user gets a page based on template 'unsubscribed.html'.
There are no variables available.
The newsletter is based on template
'newsletter.txt'. These variables are used:
|
#%name%# |
Name of the user, it allows you to send a personalized newsletters. |
|
#%login%# |
URL where the user can log in to modify an account or to unsubscribe |