WordPress.org

Yorùbá

  • Themes
  • Plugins
  • Àtìlẹ́yìn
  • Nípa
  • Ìwé Ìtónisónà
  • Egbé
  • Kàn síwa
  • Gba WordPress
Wa WordPress jáde
WordPress.org

Plugin Directory

HTML Emails

  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé
  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé

Plugin yìí kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress. Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

HTML Emails

Láti ọwọ́ Mohammad Jangda
Ṣe ìgbàsílẹ̀
  • Àwọn àlàyé
  • Àwọn àgbéyẹ̀wò
  • Ìgbéwọlẹ̀
  • Ìdàgbàsókè
Ìrànlọ́wọ́

Àpèjúwe

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:

<?php htmlize_message_body($email_templates, $email_data); ?>

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

Àwọn àwòrán ìbòjú

  • New Comment email as viewed in Gmail
  • New User email as viewed in Gmail
  • Email as viewed in Mail.app

Ìgbéwọlẹ̀

  1. Upload and extract the plugin to plugins directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enjoy sweet lookin’ email notifications!

FAQ

When I get some Frequently Asked Questions, I’ll include them here.

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“HTML Emails” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa
  • Mohammad Jangda

Túmọ̀ “HTML Emails” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.0 (2010-05-05)

  • Note: This version was originally released as v0.2 but users weren’t being prompted with an upgrade because parsefloat is dumb.
  • Feature: Support for “New User” and “Password Lost” emails
  • Bug: Moderation emai not showing the correct number of emails pending
  • Localization: Belarusian translation added. Thanks to Marcis G.

0.2 (2010-05-04)

  • Same as 1.0

0.11 (2010-04-09)

  • Better localization support
  • Bug: Moderation emails were not being sent because the wp_mail call was commented out
  • Docs: Localization comments and addtional details on customizing templates

0.1 (2010-04-04)

  • First release
  • Comment notification emails

Àkójọpọ̀ Meta

  • Ẹ̀yà 1.0
  • Ìgbàgbọ́hùn tó kẹ́yìn ọdún 16 sẹ́yìn
  • Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ 20+
  • Ẹ̀yà WordPress 2.9 tàbí ju bẹ́ẹ̀ lọ
  • Dánwò dé 3.0.5
  • Èdè
    English (US)
  • Àwọn àmì
    emailhtmlhtml emailhtml emailsnotification
  • Ìwòye Tó Péye

Àwọn ìbò

1 lára àwọn ìràwọ̀ 5.
  • 0 5-star reviews àwọn ìràwọ̀ 5 0
  • 0 4-star reviews àwọn ìràwọ̀ 4 0
  • 0 3-star reviews àwọn ìràwọ̀ 3 0
  • 0 2-star reviews àwọn ìràwọ̀ 2 0
  • 1 1-star review ìràwọ̀ 1 1

Add my review

See all reviews

Àwọn Olùkópa

  • Mohammad Jangda

Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

Wo àpéjọ ìrànlọ́wọ́

Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

Ṣe ìtọrẹ sí plugin yìí

  • Nípa Wa
  • Iroyin
  • Hosting
  • Privacy
  • Àfihàn
  • Themes
  • Plugins
  • Patterns
  • Kọ ẹkọ
  • Atilẹyin
  • Developers
  • WordPress.tv ↗
  • Kópa
  • Àwọn ìṣẹ̀lẹ̀
  • Ṣètọrẹ ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Yorùbá

  • Ṣabẹwo sí àkàùntù X (Twitter tẹ́lẹ̀) wa
  • Bẹwo akanti Bluesky wa
  • Lọ sí àkáǹtì Mastodon wa
  • Bẹwo akanti Threads wa
  • Ṣabẹwo si Facebook wa
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Bẹwo akanti TikTok wa
  • Visit our YouTube channel
  • Bẹwo akanti Tumblr wa
Koodu jẹ Ewi.