Sending plain text
phpList always generates a plain text version of your campaign, which is then included in the html campaigns as a matter of course. This is part of the normal working of email functionality. phpList also gives you two additional features:
- Your subscribers can choose to receive plain text emails only
- You can edit the plain text version to improve it.
You can see the plain text version embedded in the source of your email by clicking View Source in your email client (exact instructions vary wildly)
As you can see there is a plain text version in and amongst the html and other code.
Why edit the plain text version?
The automatically generated plain text version may not be very attractive. It is good practice to provide a quality plain text version because it:
- displays better in some email software
- makes your emails more accessible for people with visual impairments.
To assess the state of your default plain text version, you can click to view your emails only in plain text. In a desktop email client this is usually View > Message Body As > Plain text.
You can then see your email as it would be displayed to someone who is only able to receive plain text messages.
Enabling plain text editing
Some installations do not show the Text tab, which is used to manually configure your text-only email content. If your tabs look like this, you'll need to change the configuration:
To activate the Text tab in your installation, add the following lines to your config.php file:
# Manual text part, will give you an input box for the text version of the message
# instead of trying to create it by parsing the HTML version into plain text
An extra tab will now display in your campaign workflow.
Create your plain text version
You should now be in the second tab, Text.
You can manually compose the plain text version, or you can generate it automatically by using the generate from HTML button. Some special characters in your html email may cause this automatic generation to fail. You can paste your text into this tab if you need to.
The empty Plain text version of message box will now contain a text only version of your html message.
The content should be the same as the html version. However images in the html version will automatically be removed and replaced by text descriptions and URLs are replaced by links. You can edit the message further if required, to make it as attractive and legible as possible.
Once you are happy with your plain text version, click Save and continue editing button, at the bottom of the text editing box, and carry on with testing and sending your campaign.
When you send tests, you will receive two emails, one text and one html.
The HTML version:
The Plain text version
Format tab: ONLY send plain text?
On the format tab there is a radio button for sending in either HTML or Text. Typically you will want to select the "HTML" radio button, which sends a version of the message that each subscriber specified when they joined your list.
However, if you want to send the text version of the message, select the "Text" radio button. This will override the user preferences, and send all subscribers the text version of the email.
Discuss this chapter here.