Joup MailDirector

Description

Joup MailDirector helps you test outgoing WordPress email without delivering messages to their original recipients.

When Email Redirection is enabled, emails are sent to the Redirect Email instead of the original recipients. If Redirect Email is blank, emails are discarded and not sent. Recipients listed in Allowed Emails or belonging to Allowed Roles always receive email normally.

Features:

  • Enable or disable email redirection from Settings > Joup Email Redirect.
  • Redirect non-allowed recipients to one email address.
  • Leave Redirect Email blank to discard non-allowed messages.
  • Allow specific email addresses, separated by semicolons or new lines. Email matching is case insensitive.
  • Allow registered WordPress roles using a checkbox table, including Ultimate Member roles when available.
  • Preserve the To, Cc, or Bcc position of allowed recipients.
  • Prefix redirected subjects with the original To addresses so the intended recipients are easy to identify.
  • Preserve message bodies, attachments, sender addresses, and Reply-To headers.

The plugin uses your existing WordPress mail transport. It has been tested with WP Mail SMTP and MailHog. It does not require Ultimate Member or WP Mail SMTP to operate.

Only email sent through WordPress wp_mail() is affected. Messages sent through direct SMTP connections or external email APIs that bypass wp_mail() are not redirected.

Copyright and Attribution

Copyright Joup.Dev

Licensed under the MIT License. Retain copyright and license notices when reusing the code. See the bundled LICENSE file for the full terms. Third-party files retain their own copyright notices and license terms.

Disclaimer

This plugin is provided “as is”. No warranty, express or implied, is provided, including any implied warranty of merchantability, fitness for a particular purpose, or non-infringement. The plugin is not guaranteed to meet your requirements or be suitable for your intended use.

To the fullest extent permitted by applicable law, the copyright holder and contributors are not liable for any damages arising from the use of, inability to use, or distribution of this plugin, including direct, indirect, incidental, special, consequential, or punitive damages, loss of data, loss of email, or lost profits, even if advised of the possibility of such damages.

Installation

  1. Upload the complete plugin ZIP using Plugins > Add New > Upload Plugin, or copy the joup-email-redirect folder into wp-content/plugins.
  2. Activate Joup MailDirector.
  3. Open Settings > Joup MailDirector.
  4. Enter the Redirect Email, or leave it blank to discard non-allowed messages.
  5. Add Allowed Emails and select Allowed Roles as needed.
  6. Enable Email Redirection and save your changes.
  7. Send one test email to an address you control. Check your mail service or local mail capture tool to confirm that MailDirector handled the message as configured before running a larger test.

The installation ZIP includes the required autoloader. End users do not need to run Composer.

FAQ

What happens when Email Redirection is disabled?

The plugin leaves normal email delivery unchanged.

What happens when Redirect Email is blank?

When Email Redirection is enabled, messages to non-allowed recipients are discarded. Allowed recipients still receive messages normally. If no allowed recipients remain, wp_mail() returns false because the message was not sent.

Can one message contain both allowed and redirected recipients?

Yes. Allowed recipients remain in their original To, Cc, or Bcc positions. Other recipients are replaced by the Redirect Email if provided, or removed if it is blank.

How do I enter allowed roles?

Check the Allow box beside each role name. The plugin stores the role identifiers internally; you do not need to type names or identifiers.

Does it support Ultimate Member roles?

Yes. Ultimate Member roles registered with WordPress appear in the Allowed Roles table and are checked using the recipient’s WordPress account.

Does it work with WP Mail SMTP?

Yes. Recipient redirection runs through WordPress mail filters before the configured mail transport sends the message.

Does the subject change?

When recipients are redirected, the subject is prefixed with the original To addresses, for example: [original@example.com] Original subject. Entirely allowed messages retain their original subject.

Is delivery to a mail service proof that an email reached an inbox?

No. The final delivery outcome depends on the configured mail service and recipient system.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Joup MailDirector” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Joup MailDirector” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

27.0.2

  • Move PHP classes to the JOUP namespace.
  • Use Allowed terminology in configuration, storage and code.
  • Keep bootstrap variables local and stop direct access to the plugin entry file.
  • Retain email redirection behavior.

27.0.1

  • Updated release version metadata.

27.0.0

  • Initial release.
  • Added email redirection, blank-address suppression, allowed emails, allowed roles, and original-recipient subject prefixes.