Converts the default plain text email notifications into fully customizable, sweet-lookin' HTML emails.
You can fully customize the look of any of the emails by creating your own templates. Emails have two pieces:
Custom templates can be created an placed in either your theme directory or your Content directory (/wp-content/ on most sites). See utils.php for a number of useful functions that you can use in your templates.
The Email Wrapper includes elements and markup that are common across all email notifications. It contains your html, head and body tags and any other elements that are shared across emails.
To customize the email template, create a file called
html_email.php and add it to either your theme or content directory.
Note: you must include the following code in the template to work:
<?php htmlize_message_body($email_templates, $email_data); ?>
The Email Wrapper has access to the following variables:
Email Message: New Comment
By default, new comment and comment moderation emails share the same template. You can create separate templates for both for each comment type by creating the following files:
If you don't want to customize the emails by comment type, just create the following two templates:
If you just want a custom template shared between the two notification types, just create the following:
New Comment email messages have the following data variables available:
It's pretty easy to use. The main call you need to make is htmlize_message() and pass the return into your wp_mail object. Details to come.
Requires: 2.9 or higher
Compatible up to: 3.0.5
Last Updated: 6 years ago
Active Installs: 200+
Got something to say? Need help?