PhpList

From Fishcakes Wiki

Jump to: navigation, search
  • Icon_Open_Source_20px.png Open Source
  • OS Guidelines
    Guide to using Open Source software with advice on specific solutions.
  • OS Software
    List of Open Source software with notes and links.
  • ActiveCollab
    Setting up and using ActiveCollab Project Management Groupware.
  • eTicket
    Setting up and using eTicket online support system.
  • phpMyFAQ
    Setting up and configuring FAQ CMS.
  • PhpList
    Configuring a Mailing List with bounce processing.
Edit Menu

Image:Icon_Open_Source_40px.png phpList

Notes about configuration phpList Mailing List software with bounce processing.

Contents

About phpList

Features

  • Web-based Mailing List (email announcement) management software with bounce processing.

See Also

  • tbd

Installation & Configuration

Instructions for installing phpList including post-install configuration.

Installing phpList

Installing phpList with cPanel Fantastico auto installer.

  1. Login to cPanel and load the Fantastico page.
  2. Select phpList and click the New Installation link.
  3. Set the Installation Location: Domain and Folder.
  4. Enter the Administrator's Account: Username, Password and E-mail.
  5. Enter the Base Configuration: Bounces=5, Lists=5, Criterias=2, Attachments=2, Language=English.
  6. Enter the Email Account Configuration (for bounce processing):
    • E-mail account username — phplist@yourdomain.com
    • E-mail account password — yourpassword
    • POP/SMTP server — mail.yourdomain.com
  7. Set the Message Queue Processing to Manual or Cron for auto-processing. See below.
  8. Complete the installation, remembering to email the configuration settings to yourself.
  9. Logout of cPanel, then Login to phpList to finish the configuration.

Setting phpList Cron via cPanel

  1. Login to cPanel
  2. Click on the Advanced > Cron Jobs button.
  3. Click on the Standard experience level button.
  4. Set the cron job to run Every Fifteen Minutes, Hour, Day, Month and Week Day.
  5. Insert the cron job code (adding code to output a text file of the results:
/usr/local/bin/php -q /home/yourdomain/public_html/phplist/admin/index.php -p processqueue -c /home/yourdomain/public_html/phplist/config/config.php > /home/yourdomain/cronoutput.txt

Set Configuration Settings

Setting the primary configuration values (see below for email and template settings).

  1. Login to phpList Admin at http://www.yourdomain.com/phplist/admin/
  2. Select configure from the right menu to load the configure phplist page.
  3. Verify that the primary configuration values are correct, paying particular attention to:
    • Set Website address to yourdomain.com -or- www.yourdomain.com.
    • Set Domain Name of server (for email) to yourdomain.com. This is added to email addresses with the [DOMAIN] placeholder value.
    • Set Who gets the reports to you@yourdomain.com -or- you@[DOMAIN].
    • Set From email address for system messages to info@yourdomain.com This should NOT be the same as the bounce address. You should check this account for user replies.
    • Set System Messages Name to Mailing List Name.
    • Ensure Reply-to email address for system messages is noreply@yourdomain.com.
    • At the bottom of the configuration page, set Domains that only accept text emails to (space) — remove the mail.com and email.com values.
  4. Click Save Changes.

Configure Attributes

Setting up Attributes which add fields for subscribed users.

  1. On the Main Admin page, click on System Functions > setup.
  2. On the Configuration Options page, click on Configure Attributes to add any additional fields you want.
  3. Add field Name, type textline, default value novalue, required ticked.
  4. Click Save Changes.

Create Lists

Setting up the List(s).

  1. On the Main Admin page, click on System Functions > setup.
  2. On the Configuration Options page, click on Create Lists to configure the list.
    • Click on the edit link to setup the default list 1.
    • Set the List Name to Fishcakes Test List; Tick the Make List Active box; and enter a List Description.
  3. Click Save.

Configure the Subscribe Emails

Enter the Subject and Message text as follows:

  1. Select configure from the right menu to load the configure phplist page.
  2. Confirmation Request — set the Subscribe message subject and text.
    • NOTE: this Confirmation request is over-ridden by the Subscribe Pages values below.
  3. Unsubscribe — set the Unsubscribe message subject and text.
  4. Welcome — set the Message received after confirming subject and text.
    • NOTE: this Welcome message is over-ridden by the Subscribe Pages values below.
  5. Preferences Updated — Set the Message received when details changed subject and text.
    • Set the NEW email address part text and the OLD email address part text (prefs update email).
    • BUG WARNING: This message cannot contain ' (apostrophe) characters!
  6. Preferences Page Request — set the Subject and Message for personal location request subject and text.
    • BUG WARNING: This message cannot contain ' (apostrophe) characters!
  7. Footer — set for all messages.
    • Make sure your HTML Email Template includes the [FOOTER] placeholder or the formatting will be ruined when this is added to the end.
  8. Forward Footer — set for all messages.
    • This appears where the HTML Email [FOOTER] placeholder is located, or just added to the end of a text message.
  9. Click Save Changes.

Configure the Web Template

Enter the default Header and Footer for your web pages.

  1. Select configure from the right menu to load the configure phplist page.
  2. Paste the HTML code for the Header of public pages field.
  3. Paste the HTML code for the Footer of public pages field.
  4. Click Save Changes.
  • NOTE: these values are over-ridden by the Subscribe Pages below.

Create Subscribe Pages

You should also create a Subscribe Page for your mailing list, which allows you to control which fields are displayed to the user.

  1. Select subscribe pages from the right menu to load the subscribe pages page.
  2. Click on the add a new one link, or the edit link for an existing page, to load the edit a subscribe page.
  3. Fill in the details for the list subscription pages and emails.
    • Title — this is only used internally.
    • Language — should usually be default.
    • Intro — this text appears at the top of the subscribe page.
    • Header — this over-rides the HTML Header on the main configuration page.
    • Footer — this over-rides the HTML Footer on the main configuration page.
    • Thank You — displayed after a user hit's the subscribe button. Should include info about checking Bulk Mail folder for web-based services.
    • Button text — something like Subscribe to mailing list.
    • HTML Choice — select the Don't offer choice, default to HTML button.
    • Email Confirmation — select the Don't display email confirmation button.
    • Set the Subject and Subscribe message text (confirmation request).
      • NOTE: this Confirmation message over-rides the main configuration page value.
    • Set the Subject and Message received after confirming (welcome email).
      • NOTE: this Welcome message over-rides the main configuration page value.
    • Attributes — enable all the fields you want users to fill in when subscribing
    • Select Lists — tick all the lists you want to offer.
  4. Click Save and Activate then preview the page.

Edit Config File

You now need to edit the file phplist/config/config.php.

  1. Set the Message Envelope for bounces to return to. Uncomment and change Line 69 to:
    $message_envelope = 'list-bounces@yourdomain.com';
  2. Specify the Pop account. Edit lines 82 to 84:
    $bounce_mailbox_host = 'mail.yourdomain.com';
    $bounce_mailbox_user = 'list-bounces@yourdomain.com';
    $bounce_mailbox_password = 'yourpassword';
  3. Enable User Passwords and require password for unsubscribe. Edit line 143 and line 148:
    define("ASKFORPASSWORD",1);
    define("UNSUBSCRIBE_REQUIRES_PASSWORD",1);
  4. Remove phpList image from HTML emails. Edit line 267:
    define("EMAILTEXTCREDITS",1);
  5. Remove phpList image from Web pages. Edit line 271:
    define("PAGETEXTCREDITS",1);
  6. Set the Mail Queue settings to match your mail server. Set the server to send out 300 messages per hour, spaced at one every 10 to 12 seconds.
    • Set number of emails to send per period. Edit line 312:
    define("MAILQUEUE_BATCH_SIZE",300);
    • Ensure length of one batch processing period, in seconds (3600 is an hour). Check that line 315 is set to:
    define("MAILQUEUE_BATCH_PERIOD",3600);
    • Set mail queue throttle limit to space out messages (in seconds). Edit line 321:
    define('MAILQUEUE_THROTTLE',10);
  7. Set the From message to be from List email address, not User email address. Edit line 346:
    define('USE_ADMIN_DETAILS_FOR_MESSAGES',0);
  8. Set test email to send only 1 test email. Edit line 353:
    define('SEND_ONE_TESTMAIL',1);
  9. Use SMTP authentication. Uncomment and edit lines 625 to 626:
    #$phpmailer_smtpuser = 'list-bounces@yourdomain.com';
    #$phpmailer_smtppassword = 'yourpassword';
  10. Save the file.

Web Template

Creating the Web Template

  • tbd

Configuring the Web Template

HTML Email Template

Details of how to create a Multipart/Alternative MIME email which will display in most email clients as well as webmail services.

Creating the HTML Email Template

  • css — use inline CSS or HTML FONT tags as most CSS styles and all CSS structure elements will be stripped.
  • images — use only HTML embeded images and CSS url embeded images don't always load.
  • structure — use table based layout as CSS divs don't always work.
  • width — keep it as narrow as possible as wide just doesn't work. AOL has max width of 200px!
  • headers — browser-based email services (Google, Yahoo, Hotmail...) will strip out your DOCTYPE, BODY, and HEAD tags. Anything inside those tags will get stripped.
  • email client testing — test for AOL (Desktop), Apple Mail, Entourage, Eudora, Lotus, Outlook, Outlook 2003, Outlook 2007, Outlook Express, Thunderbird.
  • webmail testing — test in Firefox, Internet Explorer (IE), Netscape, Opera and Safari on Mac and Windows for these browser-based services: AOL Webmail, Comcast, Earthlink, Google, Hotmail, MSN, Yahoo!Mail.

Configuring the HTML Email Template

tbd

See Also

  • CanSpam — requirements for Commercial Emailers.
  • mailchimp.com — bulk email service provider with good tutorials.

Sending a Message

Message Subject

Subjects for email messages should be no more than 60 characters (including spaces) maximum or they may be truncated by some email clients.

Our Mailing List: What a Lovely Day Show - Tue 18 Jan 2008     <- title of message
123456789012345678901234567890123456789012345678901234567890   <- character count
-------->1-------->2-------->3-------->4-------->5-------->6   <- 60 characters maximum

Verifying Emails

In order to verify that your message are getting through to end users, you should setup and subscribe test accounts for the following major providers:

Personal tools