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.
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.
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.
WP Better Emails wraps every "plain/text" email sent with the WordPress function wp_mail().
Just delete and reinstall the plugin from the admin panel.
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.3.2
Last Updated: 2011-12-5
Downloads: 16,822
0 of 2 support threads in the last three weeks have been resolved.
Got something to say? Need help?