BlueCube Email Templates

This plugin provides an email template system for developers to send programmatic emails which their clients can easily update the emails content.

Author:The Blue Cube (profile at wordpress.org)
WordPress version required:4.4
WordPress version tested:4.4.32
Plugin version:1.0
Added to WordPress repository:02-02-2016
Last updated:11-10-2016
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://wp.me/p77SoR-6n
Total downloads:1 034
Active installs:30+
plugin download
Click to start download

This plugin is intended to be useful more for developers than other types of users.

Have you ever had a client who likes to be able to independently update the content of the emails that your code is sending out programmatically? If so, this plugin might help you make your client happy.

How to use:

When you activate the plugin, it adds a custom post type to your website called “Email Templates”. You can create your templates using this custom post type. Templates can contain placeholders for your code to fill them up with desired values. A placeholder sample would be {USERNAME} or {USER_EMAIL}. Please note, placeholders should not contain lowercase letters.

This plugin creates a global instance of the BlueCube\Email_Template class which is called $bluecube_email_template. Once you have created a template, you can use the sendEmail() method of the instance to send out your emails.

$email_args = array(
    'template_title'    => 'your-template-title',
    'to'                => $email,
    'variables'         => array('username' => 'JohnDoe', 'user_email' => 'test@test.com'),
);
$bluecube_email_template->sendEmail($email_args);