Newsletter Documentation

Newsletter Documentation *

Features *

Installation *

Path to Perl *

Edit Configs.pm *

Customise Templates *

Upload Files *

Setting Crontab *

Running the Script *

Quick Start Guide *

Add custom categories *

Edit Header *

Edit Footer *

Set Delivery Options *

Enter Headlines *

Enter Footlines *

Edit Remove Code *

Advertisement Configuration *

Add Advertisers *

Add Event to Schedule *

Features

Allows for an email client to receive the richest content it can display without displaying content that it can’t render. No more sending HTML code to users that can’t see it as HTML.

Set the look and feel of the top and bottom portions of your newsletter and have it displayed the same and correctly for each issue.

Allows you to break your content up into categories, so articles can be posted to each area and separated by standardised dividers.

Set standardised dividers to separate articles and features in different categories. The headline could be the title of the current category, and the footline could well be the URL to that categories archive.

Allow for multiple users to add content to the newsletter without allowing access to other major admin functions.

Easily add sponsors, promotions and advert swaps to be displayed as part of a rotating list of advertisements. Makes sure you always have advertising displayed and that it’s always somewhat fresh.

Set what time and days you’d like your newsletter to be automatically sent.

Setup content well before the day the newsletter is sent, allowing for hands free operation and vacations.

Allows for a number of different date formats depending on your needs and wishes.

View the entire email list online easily.

Displays both the Plain text and HTML versions of the current issue in the browser to spot formatting problems or mistakes.

Sends a copy of the current issue to an email address to test its appearance.

Logs are important for disputing claims of spamming and for proving that a certain user did in-fact subscribe to your list. These logs include the actions performed (Subscribe, Confirm, Remove), the date, the time and the users IP address.

Backup your entire user list at the touch of a button.

Installation

Path to Perl

#!/usr/bin/perl

The script uses the most common path to Perl however if the script doesn’t run for you, you may have to change the first line of each cgi and pm file.

Edit Configs.pm

  1. Open Configs.pm in a text editor.
  2. $dbasedir set this to the path where you plan to place database files, if possible this should be outside of your publicly viewable web-space and in a directory browsers can’t see. No trailing slash.
  3. $scriptdir change this value to the path you will be installing the public cgi and html files for the script. It’s a good idea to create a folder called "newsletter" for this process either in your cgi-bin or anywhere else where CGI scripts can be executed on your server.
  4. $scripturl this is the actual URL used to browse to the script.
  5. $mailprog if needed change this to your sendmail path.
  6. $sortprog this path may also need changing to a path to match your system.
  7. $news_from is the email address that the newsletter appears to come from. @ must be proceeded by a \ as in "email\@domain.com"
  8. $admin_email is the email address of the newsletter administrator. @ must be proceeded by a \ as in "email\@domain.com"

Customise Templates

The templates\subscribe folder contains templates that can be used to customise the look and feel of your subscription pages. You can also edit the admin scripts appearance if need-be.

Upload Files

  1. Create a directory for your databases preferably in a non-public readable directory. The name of the directory is at your digression but must match that in your Configs.pm file. The default is "newsdb". If you wish you can upload the data files included, these will provide a picture of how the script works when all data is filled in. Although you may wan to skip this step to save time as the script will create them as needed.
  2. Create a directory for the main script files in your cgi-bin or any other directory with CGI access. The name of the directory is at your digression but must match that in your Configs.pm file. The default is "newsletter".
  3. Upload in ASCII mode all script files to the directory created in step 2.
  4. Upload the templates and help directories to the path created in step 2.
  5. CHMOD all .cgi and .pm files to 755.
  6. CHMOD the database directory to 777.

Setup MIME::QuotedPrint

The script requires the use of the Perl module MIME::QuotedPrint. This is used to encode the HTML format email before sending. The package has been included with this script and can easily be installed by your server administrator.

Setting Crontab

Another component of the script is the automatic sending of the newsletter at a set time of day on certain days of the week. To enable this you need to add a crontab job as follows.

*/30 * * * * cd /full/path/to/newsletter && ./croncheck.cgi

Running the Script

Open admin.cgi in your browser and enter the username "admin" and the password "pass". You can then use the admin interface to change the default password.

 

Quick Start Guide

Add custom categories

Categories are the sections that make up your newsletter. This divides your content up making it easier to manage. Category names should be one (1) word descriptions of a single section of your newsletter. Although if needed you can create a single category that contains all your content.

  1. Click "Add Category".
  2. Enter a word that describes the section. i.e. Jokes, Cartoons, News.
  3. Click "Modify" to Save changes.

Edit Header

This area that allows you to edit what is displayed at the top of your newsletter in every issue. Include here the title of your newsletter and a little about what its for so people know what the email is all about. Include %issue% and %date% can also be included here, and will be replaced with the current issue number and date when the newsletter is sent.

  1. Click "Edit Header".
  2. In the top "HTML Header" section enter the HTML code you’d like to use to format the top most section of your newsletter.
  3. In the top "Plain Header" section enter the text you’d like to use to format the top most section of your newsletter.
  4. Click "Modify" to Save changes.

Edit Footer

This works in the same way as "Edit Header" but contains the content to be placed at the bottom of the newsletter in each issue. Includes support for %issue% and %date%.

  1. Click "Edit Footer".
  2. In the top "HTML Footer" section enter the HTML code you’d like to use to format the bottom section of your newsletter.
  3. In the top "Plain Footer" section enter the text you’d like to use to format the bottom section of your newsletter.
  4. Click "Modify" to Save changes.

Set Delivery Options

In this section you are able to change the settings which control when and how your newsletter is sent.

  1. Click "Delivery Options".
  2. Check the boxes for which days you’d like to send your newsletter.
  3. Select the time of day at which to send.
  4. Select a mail type, HTML, Plain or Both.
  5. Select how you’d like the date to be displayed in your newsletter.
  6. Click "Set Delivery" to Save changes.

Enter Headlines

These "Headlines" contain the data that is included just above each section of your newsletter. They are best used to put the title of the section and any info that is needed at the top of a section for every issue. Once again %date% and %issue% can be used here.

  1. Click "Change Headlines".
  2. Enter the HTML and Plain text you’d like to display above each newsletter category/section.
  3. Click "Modify" to Save changes.

Enter Footlines

"Footlines" contain the data posted at the end of each section. These can be used to place a link to the archive for that section or can just be left blank if need-be. Once again %date% and %issue% can be used here.

  1. Click "Change Footlines".
  2. Enter the HTML and Plain text you’d like to display below each newsletter category/section.
  3. Click "Modify" to Save changes.

Edit Remove Code

Unsubscription instructions are very important to your newsletter, without them you’ll be swamped with abusive email and threats. Its also advisable to set the script to place this code both at the top and bottom of your newsletter as this further cuts down your personal email load. Remember to include %remcode% for the users person unsubscribe URL that includes their email address. Once again %date% and %issue% can be used here.

  1. Click "Edit Remove Code".
  2. Choose where you’d like the unsubscribe instructions displayed in your newsletter. Top inserts it just under the header, Bottom inserts it just above the footer, and Both puts it at the top and bottom.
  3. In the "HTML Version" box enter the HTML code to be inserted as your unsubscribe instructions.
  4. In the "Plain Version" box enter the text to be inserted as your unsubscribe instructions.
  5. Enter %remcode% as the URL for users to click to be unsubscribed.
  6. Click "Modify" to Save changes.

Advertisement Configuration

This section is fairly easy, all you need to do is specify which areas in your newsletter you’d like to display rotating advertisements.

  1. Click "Ads Configuration".
  2. Check the boxes for where you’d like adverts to be displayed.
  3. Click "Modify" to Save changes.

Add Advertisers

Advertising and ad-swaps are key to running a successful newsletter, this area allows you to add as many adverts as you like. Once again %date% and %issue% can be used here.

  1. Click "Add Advertiser".
  2. Enter a single work "Advertiser ID".
  3. Next enter the name of the advertiser, either individual or company name.
  4. Now fill in the Contact Name, and Contact Email.
  5. In the "HTML Version" box enter the HTML code to be inserted for this advertisement in HTML compliant email clients.
  6. In the "Plain Version" box enter the text to be inserted for this advertisement in email clients that don’t support HTML.
  7. Click "Add" to add this advert to the list to be rotated.

Add Event to Schedule

This area allows you to enter the content you’d like displayed for each category/section of your newsletter. By default it will start at one (1) and each additional event to be scheduled will increase the "issue number" by one, although you can start or jump to any issue number you’d like at any stage. For example if you have a pre-existing ezine you might like to start at issue 175 rather than 1. Once again %date% and %issue% can be used here.

  1. Enter the Issue number you’d like to start at if not 1.
  2. Enter the subject to be used for newsletters. %issue% can be used to insert the current issue number and %date% to insert the current date using the format specified in "Delivery Options".
  3. Now insert the content for each of the categories/sections of the newsletter. Enter both the HTML and Plain-text versions. If you wish to leave a category out of the current issue just leave its boxes blank.
  4. Click "Add Event" to save to schedule.

Proud suppliers of perl cgi and php applications created from the webmasters point of view. PerlCoders supplies top quality CGI scripts at membership warehouse prices every day. This is the only webmaster resource you need to build traffic and add interactive content to any website.

Need custom programming or website development? We do it all. Just use our contact form and let us know what you need.

Perlcoders.com - Copyright © 2003 by PerlCoders Group
Privacy policy       Licensing policy       Site Usage Terms
Not a member yet?
Click Here
User:
Pass:
I forgot my password
  HomePage
Current News
Our Products
Our Services
FAQ & Docs
Support
Contact
Make Money!
Affiliate Login
 
Right now get access at a special rate of only $160 which includes more than 156 of our top quality CGI scripts and get deep discounts on many others. You also get full access to our members area which is slam packed with webmaster goodies.

  · Read more...


 
Get the latest News at
the Perlcoders group.

 
What our clients say
Tell us what you think
Projects in the works
Free scripts to members
Free self help ebooks
Free Tip of the Day
Free Support
Custom programming
SEO Resources
Cellulean
Myth of Caesar
Google Forum
Image Hosting
SEO Forum
Click here to join ArticleDistribution
Click to join Article Distribution