前言介紹
- 這款 WordPress 外掛「HTML Emails」是 2010-04-05 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2010-05-05,距離現在已有 5477 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.9 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
batmoo |
外掛標籤
html | email | html email | html emails | notification |
內容簡介
此外插件可以將預設的純文字電子郵件通知轉換為可完全自訂,好看的 HTML 郵件。
支援多站點 (WordPress 3.0) 將在不久的將來添加。
注意事項:
電子郵件會以可讀的純文字版本發送,以便於不支援 HTML 郵件的電子郵件客戶端。注意: 由於它們是自動生成的,因此它們有些粗糙。未來我可能會決定添加美觀的純文字版本,但這是低優先級的事情。
電子郵件僅經過 Gmail、Android 上的 Gmail 和 Outlook 測試,但應該可以在大多數電子郵件客戶端 (包括不支援 HTML 的客戶端) 上運作。如果您使用的是我未列出的客戶端,我會感激您通過電子郵件 提供關於電子郵件是否正常顯示和運作的信息。
如果有問題、建議或意見,請透過電子郵件與我聯繫。
自訂範本
您可以通過創建自己的範本,完全自訂任何電子郵件的外觀。電子郵件由兩部分組成:
電子郵件包裝 (所有電子郵件中通用的內容)
電子郵件訊息 (每個電子郵件獨特的內容)
自訂模板可以創建並放置在主題目錄或內容目錄 (/wp-content/ 在大多數站點上) 中。在 utils.php 中看到一些有用的函數,您可以在模板中使用。
電子郵件包裝
電子郵件包裝包含在所有電子郵件通知中通用的元素和標記。它包含您的 HTML、head 和 body 標籤以及任何其他在電子郵件中共享的元素。
要自訂電子郵件範本,請創建一個名為 html_email.php 的檔案,並將其添加到您的主題或內容目錄中。
注意: 模板中必須包含以下程式碼才能運作:
電子郵件包裝可以訪問以下變數:
$email_title: (string) 電子郵件的標題
$email_subtitle: (string) 電子郵件的副標題
$email_data: (array) 调用函数时传递的各种数据的关联数组
電子郵件訊息: 新留言
默認情況下,新留言和留言審核電子郵件共用相同的範本。您可以通過創建以下檔案,為每種評論類型創建分訂的模板:
notify_postauthor_comment.php
notify_postauthor_trackback.php
notify_postauthor_pingback.php
notify_moderator_comment.php
notify_moderator_trackback.php
notify_moderator_pingback.php
如果您不想按評論類型自訂電子郵件,只需創建以下兩個範本:
notify_postauthor.php
notify_moderator.php
如果您只想共用兩種通知類型之間的自訂模板,只需創建以下內容:
notify_comment.php
新留言電子郵件訊息有以下數據變數可用:
$comment – (obj) 留言物件
$post – (obj) 文章物件
$comment_type – (string) 評論類型的 Slug
$comment_type_text – (string) 友好的評論類型名稱
$post_author – (obj) 文章作者資訊
原文外掛簡介
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
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「HTML Emails」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1 | 0.2 | 1.0 | 0.11 | trunk |
延伸相關外掛(你可能也想知道)
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin 》WordPress Mail SMTP外掛, 如果您的WordPress網站無法正確發送電子郵件,您並不孤單。超過三百萬個網站使用WP Mail SMTP可靠地發送電子郵件。, 我們的目標是...。
MC4WP: Mailchimp for WordPress 》讓訪客訂閱您的電子報應該很容易。透過這款外掛,現在終於可以輕鬆做到了。 這個外掛可幫助您在 Mailchimp 中擴展您的電子郵件列表。您可以使用它來創建外觀...。
Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more 》您的 WordPress 電子郵件無法正常傳送嗎?, 安裝 Easy WP SMTP,即可解決您的電子郵件傳送問題。, Easy WP SMTP 允許您配置並透過 4 個交易郵件傳送者或 SMTP...。
Post SMTP – WP SMTP Plugin with Email Logs and Mobile App for Failure Notifications – Gmail SMTP, Office 365, Brevo, Mailgun, Amazon SES and more 》即時演示 | 擴充功能, WordPress郵件SMTP外掛程式, Post SMTP是一款下一代WP郵件SMTP外掛程式,可協助並改善您的WordPress網站郵件可遞送性處理。, 易於使用...。
Mailchimp for WooCommerce 》加入 Mailchimp 的 1,700 萬客戶,這是全球最大的行銷自動化平台,以發展您的電子商務行銷策略。藉由官方 Mailchimp for WooCommerce 整合,您的客戶及其購買...。
Creative Mail – Easier WordPress & WooCommerce Email Marketing 》Creative Mail是專門為WordPress和WooCommerce設計的電子郵件外掛。, 我們智能(且超級有趣的)郵件編輯器簡化了郵件營銷活動的創建過程,並將WordPress博客...。
WP Mail Logging 》WP Mail Logging 是最受歡迎的 WordPress 或 WooCommerce 郵件記錄外掛程式。啟用後立即運作,無需任何設定。, 為什麼要記錄 WordPress 或 WooCommerce 發送...。
SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers 》```html, , , ,
SureMails WordPress 外掛總結 , , , ,...。Site Mailer – SMTP Replacement, Email API Deliverability & Email Log 》總結: 使用 Site Mailer 外掛幫助解決 WordPress 網站無法寄送郵件、郵件進入垃圾郵件中或無法送達的問題。透過此工具,您可以輕鬆提升郵件管理,確保郵件準...。
Manage Notification E-mails 》這個外掛可以讓您開啟或關閉不同的 WordPress 通知電子郵件,例如 WordPress 傳送到管理員和使用者的新使用者和密碼更改通知選項。與許多其他外掛完美結合!,...。
Newsletter, SMTP, Email marketing and Subscribe forms by Brevo (formely Sendinblue) 》Sendinblue 的官方 WordPress 外掛程式是一個功能強大的全方位電子郵件行銷外掛程式。以下是一些概觀:, , 訂閱表單 – 建立自訂訂閱表單,輕鬆整合到文章、頁...。
Kadence WooCommerce Email Designer 》這個外掛讓你輕鬆自訂 WooCommerce 交易郵件的預設樣板。使用內建的 WordPress 自訂器即可即時視覺化編輯設計。在不編輯程式碼的情況下自訂每個 WooCommerce ...。
Check & Log Email – Easy Email Testing & Mail logging 》需要一個工具,讓你可以輕鬆地記錄和查看 WordPress 發送的所有電子郵件嗎? Check & Log 可能就是此問題的解決方案。, 此 WordPress 外掛可幫助你為審計目的...。
Contact Form 7 Extension For Mailchimp 》WordPress Extension for Mailchimp (Chimpmatic Lite)可將Contact Form 7與Mailchimp Audience集成。使用Mailchimp的最新API自動將Contact Form 7提交的信息...。
Email Log 》Email Log 是一個 WordPress 外掛,可以輕鬆地記錄和查看所有從 WordPress 發送的電子郵件。, 這在調試 WordPress 網站中與電子郵件相關的問題或存儲發送的電...。