LH Email handles a WordPress site’s email: writing and sending messages, queuing and logging everything the site sends, and reading IMAP inboxes. It is built for LocalHero, a WordPress Multisite platform for community organisations, and works on any WordPress site.
Features
- A compose screen in the block editor for single emails or broadcasts, where each recipient gets their own personalised copy. A message is sent when it is published.
- Broadcasts send one message per member, not per address. With LH User Identity, each member’s copy goes To their primary email and every verified alias, and any of their addresses entered more than once are merged. A per-email switch, “Send to each member’s other addresses”, turns this off.
- A queue and log for every email the site sends through wp_mail(), BuddyPress emails included, with delivery status and retry or cancel from the Emails screen. Every address a message went to is logged, so a bouncing address is easy to spot.
- Automatic retries when the mail server reports a temporary problem, and a delivery history for every message: each attempt with the server’s reply, and every retry, requeue and cancellation. Time-sensitive mail, such as password reset links, is never sent once it has expired.
- Sending over SMTP through connections kept in LH Connections, each with its own From name and address.
- A read-only inbox: browse folders, list and search messages (Gmail search syntax included) and read them, without marking anything as read.
- Inbound mail ingestion: each site’s IMAP mailboxes are copied into LH Messaging in the background, so mail can be searched and followed by thread from the site’s own database instead of the mailbox. On Gmail, all mail is copied, newest first, from All Mail: sent, inbox and archived mail alike. Mail the site sent itself is copied too, so every email has one stored copy in its Gmail thread. Drafts, spam and trash are left out, and the mailbox itself is never changed, so archiving in Gmail is fine. Senders and recipients are matched to member accounts. An unknown address gets an unclaimed account when it writes to the mailbox from the Primary tab or is written to from it, and when an account is created, its earlier messages are linked to it. Message content is stored as untrusted data together with its SPF, DKIM and DMARC results, and attachments are recorded by name, type and size.
- Copying an email attachment onto the server, server-side: into the media library, privately by default, or into a temporary per-user staging area (LH MCP Sandbox) for reading without keeping it. Reading the copied file is left to a separate file-reading plugin.
- MCP abilities for all of the above, so an AI assistant can search sent mail, read an inbox and draft replies. Normal reading uses the stored copy: the assistant can list stored mail filtered by sender, recipient, inbox tab, read state, date or words in it, find what is still waiting for a reply, read a whole conversation oldest first (with the site’s own replies and their delivery status), and draft a reply to a stored message without contacting the mailbox. A reply can be reworded in place without losing the email it quotes, and a draft that has been superseded can be moved to the bin, so stale copies are never sent by mistake. Once a person has approved a draft, the assistant can send it or schedule it, through the same path as publishing it in the editor, and can create a linked follow-up task in LH Tasks at the same moment. A dry run shows who it will go to and when, and a draft that has already been sent or scheduled is refused, so it is never sent twice. Drafts written as HTML or plain text are saved as blocks, so they open ready to edit in the block editor. The assistant can also inspect any logged message and its delivery history, check the health of the queue, send a failed message again, withdraw a queued one, and check or advance inbound mail ingestion.
- BuddyPress email templates editable in the block editor, under the same Emails menu.
Requirements
- WordPress 6.9 or later and PHP 8.2 or later.
- Composer, to install the IMAP library it uses: run composer install in the plugin’s folder.
- The LH Connections plugin, which stores the SMTP and IMAP connection details. Without it, email is sent the ordinary WordPress way and there is no inbox.
- Optionally, LH Messaging, which stores ingested mail. Without it, nothing is ingested and the inbox is only read live.
- Optionally, the LH Content Converter plugin, which turns drafts written by an AI assistant into blocks. Without it, those drafts are saved as classic content and send the same.
- Optionally, LH User Identity, which supplies members’ verified email aliases. Without it, broadcasts go to the primary email only.
Documentation