Plaintext for the Newsletter plugin

plugin banner

Plain text generator for The Newsletter Plugin

Author:franciscus (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:6.5.2
Plugin version:3.1
Added to WordPress repository:12-07-2019
Last updated:21-04-2024
Rating, %:100
Rated by:1
Plugin URI:http://howfrankdidit.com/plain-text-generator...
Total downloads:1 334
Active installs:60+
plugin download
Click to start download

The Newsletter Plugin is great for generating HTML newsletters. Its sophisticated Drag & Drop Composer makes it very easy to create a newsletter that looks good and renders well in a variety of email readers.

But it is generally considered good practice to include “plain text” version of the newsletter as well. For that reason, an automatic plaintext generation capability was added to the Newsletter plugin. However, that built-in capability does not apply to Raw HTML newsletters nor does it apply to transactional emails.

The purpose of this add-on is to add a plaintext generation option to all newsletters and emails sent by the Newsletter plugin.

For Raw HTML newsletters, this add-on adds the same “Autogenerate” / “Hand edited” dropdown on the Advanced settings tab that is also present for newsletters created using the Composer.

For transactional emails (such as the Welcome message, the Activation email, the Goodbye email), this add-on adds a global setting. Note that this will overwrite the default text versions generated by the Newsletter plugin for the Welcome message and the Activation email.

The plain text version is generated by code that is now part of the Newsletter plugin. It is created by reading the HTML version of the email and removing the formatting. Images are replaced by their “alt” tag and links are shown in brackets.

For an example, see my blog.

This add-on is compatible with

This add-on is not compatible with mailer plugins that replaces the wp_mail() function (e.g. Mailgun for WordPress configured to use the HTTP API). In that case, a warning will be displayed on the Plaintext options page.

Please provide feedback on the Support forum. Thanks!


Screenshots
ChangeLog