WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP Better Emails

Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set a custom sender name and email address.

What if recipient can't read HTML emails ?

WP Better Emails sends all emails in both formats ('multipart', i.e. HTML and plain text) so that emails can be displayed in every email client.

Why are the emails still sent in plain text format ?

Be sure to include the %content% tag in your template. WP Better Emails wrap the content with the template, if no tag is found, sending HTML emails is automatically desactivated.

How does WP Better Emails interact with others plugins ?

WP Better Emails wraps every "plain/text" email sent with the WordPress function wp_mail().

I totally messed up with the template, how can I get the original one ?

Just delete and reinstall the plugin from the admin panel.

How can I add my own tags ?

You can filter the tags array and add your replacements. Let's say you want to randomly display some sponsored links somewhere in your email template:

add_filter('wpbe_tags', 'add_my_tags');
function add_my_tags( $tags ) {
    $ads = array('<a href="#">Sponsored link 1</a>', '<a href="#">Sponsored link 2</a>', '<a href="#">Sponsored link 3</a>');
    $tags['sponsored_link'] = $ads[array_rand($ads, 1)];
    return $tags;
}

The key of the array sponsored_link will be a new tag (%sponsored_link%) you can include. It will be randomly replaced with one of your sponsored links.

The example above is taking sponsored links as an additinonal content but you can imagine anything like including lastest posts, a quote of the day or whatever. You can place this function in your functions.php theme file or in a plugin.

Requires: 2.8 or higher
Compatible up to: 3.9.2
Last Updated: 2014-4-17
Downloads: 74,493

Ratings

4 stars
4.8 out of 5 stars

Support

1 of 9 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

3 people say it works.
1 person says it's broken.

100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,2,2 100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
75,4,3 100,5,5 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,2,2 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,3,3 100,1,1 75,4,3 100,1,1
100,1,1 100,1,1 100,5,5
100,14,14
100,7,7
100,1,1 100,1,1 100,1,1
100,2,2 100,1,1
100,3,3 100,5,5 100,1,1
88,8,7 100,1,1 100,1,1 100,1,1
90,10,9 100,5,5 100,3,3 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 100,2,2
100,3,3 100,1,1 100,1,1 100,3,3
100,1,1
100,1,1 100,1,1
100,3,3
100,4,4
100,9,9 100,1,1
100,1,1
50,2,1
100,2,2
100,6,6
75,4,3