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
WPO365 | MICROSOFT 365 GRAPH MAILER
WPO365 | MS GRAPH MAILER provides you with a modern, reliable and efficient way to send WordPress transactional emails from one of your Microsoft 365 / Exchange Online / Mail enabled accounts. The plugin re-configures your WordPress website to send emails using the Microsoft Graph API instead of – for example – SMTP. Sending WordPress emails using the Microsoft Graph API has become the only available alternative after Microsoft has disabled basic authentication (username and password) over the SMTP protocol. DELIVERY Send WordPress transactional emails from one of your Microsoft 365 Exchange Online / Mail enabled accounts using Microsoft Graph instead of – for example – SMTP. Choose between delegated (send mail as a user) and application-level (send mail as any user) type permissions. Or: Select either a Microsoft 365 account or a personal Microsoft account, like Hotmail.com or Outlook.com, to send WordPress emails. Or: Configure RBAC for Exchange Online and authorize as an application but with a limited scope e.g. one specific mailbox. Daily refresh of Microsoft Graph access and refresh token. Auto-flagging and suppression of duplicate emails. Auto-retry when throttled (HTTP 429). SEND AS HTML Send emails formatted as HTML. SAVE TO SENT ITEMS Emails sent will be saved in the account’s mailbox in the Sent Items folder, further helping to track (successful) mail delivery. ATTACHMENTS Send files from your WordPress website as attachments. WPO365 INSIGHTS See what matters, when it happens Track key WPO365 events like sent emails with WPO365 Insights more CONFIGURATION / TEST EMAIL DELIVERY Easy configuration with detailed step-by-step Getting started guide and video. Send test email to recipients incl. CC, BCC and attachment. ADD FUNCTIONALITY WITH PREMIUM EXTENSIONS The following features can be unlocked with the WPO365 | MAIL extension. WPO365 INSIGHTS Get WPO35 Alerts in your inbox when email delivery is failing more Auto-Retry Log every email sent from your WordPress website, review errors and (automatically) try to send unsuccessfully sent mails again. LARGE ATTACHMENTS Add support to send WordPress emails with attachments larger than 3 MB using Microsoft Graph. SEND FROM ALIAS Send emails from an alias address (but submit to Microsoft Graph as the authorized user). SEND AS / SEND ON BEHALF OF Send email as / on behalf of another user or distribution list. SHARED MAILBOX Send email from Microsoft 365 Shared Mailbox. STAGING MODE Mail Staging Mode is useful for debugging and staging environments. WordPress emails will be logged and saved in the database instead of being sent. DYNAMIC SEND-FROM Allow forms to override “From” address e.g allow Contact Form 7 to dynamically configure the account used to send the email from (requires application-level Mail.Send permissions). MAIL THROTTLE Throttle the number of emails sent from your website per minute. WP-CONFIG FOR AAD SECRETS Further improve overall security by choosing to store Azure Active Directory secrets in your WordPress WP-Config.php (on disk) and have those secrets removed from the database. SEND AS BCC Send emails as BCC instead and prevent reply-to-all mail pollution. REPLY-TO Configure a default reply-to mail address if this should differ from the account’s mail address that is used to send WordPress transactional emails from. Prerequisites We have tested our plugin with WordPress >= 5.0 and PHP >= 5.6.40. You need to be an Entra ID Tenant Administrator to configure both Azure Active Directory and the plugin. Support We will go to great length trying to support you if the plugin doesn’t work as expected. Go to our Support Page to get in touch with us. We haven’t been able to test our plugin in all endless possible WordPress configurations and versions so we are keen to hear from you and happy to learn! Feedback We are keen to hear from you so share your feedback with us on LinkedIn and help us get better! Open Source When you’re a developer and interested in the code you should have a look at our repo over at WordPress.