HTML
Converts the default plain-text email notifications into fully customizable, sweet-lookin’ HTML emails. Multi-site support (for WordPress 3.0) will be added soon. Notes: Emails are sent with readable plain-text versions for email clients that don’t support HTML emails. Note: they’re somewhat crude because they’re auto-generated. I may decide to add decent-looking plain-text versions in the future, but that’s low priority. Emails have only been tested on Gmail, Gmail on Android, and Outlook, but should work on most email clients (including clients without HTML support). If you’re using a client other than the 3 I’ve listed, I would appreciate an email with info on whether the email looks like it should and works correctly. Send your questions, comments, suggestions via email. Customizing Templates You can fully customize the look of any of the emails by creating your own templates. Emails have two pieces: Email Wrapper (content common across all emails) Email Message (content unique to each email) 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. Email Wrapper 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: The Email Wrapper has access to the following variables: $email_title: (string) title of the email $email_subtitle: (string) subtitle of the email $email_data: (array) Associative array of various data passed by the calling function 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: notify_postauthor_comment.php notify_postauthor_trackback.php notify_postauthor_pingback.php notify_moderator_comment.php notify_moderator_trackback.php notify_moderator_pingback.php If you don’t want to customize the emails by comment type, just create the following two templates: notify_postauthor.php notify_moderator.php If you just want a custom template shared between the two notification types, just create the following: notify_comment.php New Comment email messages have the following data variables available: $comment – (obj) comment object $post – (obj) post object $comment_type – (string) slug for the comment_type $comment_type_text – (string) friendly name for the comment_type $comment_moderate – (bool) Whether the comment needs moderation or not Using HTML Emails in your plugin 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. Credits Blockquote image borrowed from the amazing Wu Wei theme by Jeff Ngan Plain Text conversion script by Jon Abernathy aka Chuggnutt Email styling inspired by WordPress.com Blog Subscription Notifications
Top keywords
- email23×4.49%
- comment17×3.32%
- emails11×2.15%
- php11×2.15%
- notify9×1.76%
- comment type6×1.17%
- following6×1.17%
- html6×1.17%
- php notify6×1.17%
- templates6×1.17%
- type6×1.17%
- content4×0.78%
Send
Did you find this plugin helpful? Please consider leaving a 5-star review. Note: This is a forked version of the now unsupported wpMandrill plugin. The notes below are copied over from the original plugin and will be updated as relevant updates become available. Please help by contributing to the GitHub repository Send Emails With Mandrill on GitHub This plugin uses Mandrill API to send outgoing emails, with or without attachments, from your WordPress installation. It replaces the wp_mail function included with WordPress. Emails are tracked and automatically tagged for statistics within the Mandrill Dashboard. You can also add general tags to every email sent, as well as particular tags based on selected emails defined by your requirements. You can also use your own templates that have been added to your MailChimp account and shared with your Mandrill account. There are a few levels of integrations between your WordPress installation and this plugin: The simplest option: Install it, configure it, and Send Emails with Mandrill will start sending your emails through Mandrill. If you need to fine tune certain emails, you can change any email by creating a filter for the mandrill_payload hook. For further customization, we’ve exposed a function that allows you to send emails from within your plugins, instead of the regular wp_mail function: wpMandrill::mail Enable the connection by entering a valid API key in the settings page or adding the line define('SEWM_API_KEY', '{YOUR_API_KEY}') your site’s wp-config.php file. Spanish translation available. Request If you find that a part of this plugin isn’t working, please don’t simply click the WordPress “It’s broken” button. Let us know what’s broken in its support forum so we can make it better. Our mind-reading device still needs some tweaking. Localizations Send Emails with Mandrill is currently available in the following languages: Albanian (Shqip) Arabic (العربية) Armenian (Հայերեն) Basque (Euskara) Bengali (বাংলা) Bulgarian (Български) Catalan (Català) Chinese Simplified (简体中文) Croatian (Hrvatski) Czech (Čeština) Danish (Dansk) Dutch (Nederlands) Estonian (Eesti) Finnish (Suomi) French (Français) Galician (Galego) Georgian (ქართული) German (Deutsch) Greek (Ελληνικά) Hebrew (עברית) Hindi (हिन्दी) Hungarian (Magyar) Indonesian (Bahasa Indonesia) Irish (Gaeilge) Italian (Italiano) Japanese (日本語) Korean (한국어) Latvian (Latviešu) Lithuanian (Lietuvių) Macedonian (Македонски) Norwegian (Norsk) Persian (فارسی) Persian – Afghanistan (دری) Polish (Polski) Portuguese – Brazil (Português do Brasil) Portuguese – Portugal (Português) Romanian (Română) Russian (Русский) Serbian (Српски) Slovak (Slovenčina) Slovenian (Slovenščina) Spanish (Español) Swedish (Svenska) Tamil (தமிழ்) Thai (ไทย) Turkish (Türkçe) Ukrainian (Українська) Urdu (اردو) Vietnamese (Tiếng Việt) Welsh (Cymraeg) Known Issues Daily statistics will show data for the first 20 senders (emails) registered. Daily statistics will show data for the first 40 tags registered. If your account has more than 20 senders registered or more than 40 tags used, the detailed daily statisticas might show incompleted data.