Enhanced Emails

Plugin Banner

Enhanced Emails

by Wojtek Szkutnik

Download
Description

This plugin is in early development stage. Expect bugs.

  1. Upload the enhancedemails folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Will the plugin break my current site?

This is highly unlikely to happen. The plugin enhances the way WordPress handles e-mail notifications, but it does it in a unobtrusive way. Basically, it provides a wrapper for wp_mail, which can be used for e-mail notifications. If you did override any pluggable email notification functions, make sure to use eemails_wp_mail instead of wp_mail in order to make use of the plugin functionality.

How can I create my own e-mail theme?

It’s easy – just put your email.php theme file inside your current WP theme directory (if you put it inside wp-content it should work as well, but it’s bad practice).

How does template hierarchy work for e-mails?

An example email template name looks like this: email-action1-action2. The plugin tries to locate email-action1-action2.php in your theme folder, and if it fails – it tries to use email.php from your theme. If this fails, too, the plugin will use its default email-action1-action2.php template, or if it doesn’t exist – just emails.php.

0.1

Basic functionalities added.

0.2

  • Refactored template hierarchy
  • Added output sanitization
  • Removed output buffering
  • Added a general layout to avoid code duplication
  • Theme CSS improvements
  • Adjusted wp_mail wrapper to exactly fit the argument structure
  • Improved documentation
Back to top