wordpress-email-center-plugin/README.md
2026-12-01 13:25:59 +02:00

3.7 KiB

MozOut WordPress E-mail Center plugin

Release License: MIT

Português

API: https://api.mozout.com, built in. Create your key in the API Center of My MozOut. Documentation: https://docs.mozout.com

WordPress plugin that sends the site emails through E-mail Center. It uses only our public API, with your account key. Works in Portuguese and English.

What it does

  • Site emails: everything sent through wp_mail (WordPress, WooCommerce, forms) goes through E-mail Center. It has a test send and, if the API fails, WordPress sends the email the normal way.
  • Sign-up forms: the [mozout_email_subscribe] shortcode and the "Newsletter sign-up" block, with consent and double confirmation by email.
  • WooCommerce: emails when an order is received, paid, shipped, completed, cancelled or refunded, plus an alert to the site owner. Each email turns on separately, with texts in pt and en.
  • Test and log: connection test with the email balance, and the last 50 events.

Shortcodes

Each shortcode also has a block in the editor, with the same options.

  • [mozout_email_subscribe]: Newsletter sign-up form for E-mail Center, with consent and double confirmation by email. Options: groups, title, button, name (default 1).

Install

  1. Copy the mozout-email-center folder to wp-content/plugins/ (or build a zip with tools/build-zip.sh and upload it in Plugins > Add New).
  2. Activate the plugin and open Settings > MozOut E-mail Center.
  3. Paste the API key and click "Test the connection".

Languages

  • The code is in English. Translations are gettext files in mozout-email-center/languages (.pot, and .po with .mo for pt_PT, pt_BR and pt_AO).
  • "Same as WordPress" follows the WordPress language; "Português" or "English" fixes the plugin language. Confirmations and order emails go in each customer's language.
  • After changing texts: python3 -I tools/i18n-check.py --pot, translate in the .po files, python3 -I tools/build-mo.py and python3 -I tools/i18n-check.py.

The key

  • Create it in the API Center of My MozOut, with email_center:read and email_center:write. A sandbox_ key simulates every send and spends nothing.
  • It is stored encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define MOZOUT_EMAIL_CENTER_API_KEY in wp-config.php instead.

Good to know

  • The API adds contacts straight away, without double confirmation. So the plugin does it: the sign-up waits in a table of the site until the person opens the email link. Only then does it go to the API. The proof of consent (date, IP and accepted text) stays in that table. Unconfirmed sign-ups are deleted after 7 days.
  • The sender must be at a domain verified in E-mail Center. By default the plugin always uses that address and puts the original sender in Reply-To.
  • WooCommerce keeps sending its own emails. Turn on only the ones you want on top of them.
  • It can run next to the MozOut Connect plugin. Turn on "Send through E-mail Center" in only one of them.
  • Optional constants in wp-config.php: MOZOUT_EMAIL_CENTER_API_KEY, MOZOUT_EMAIL_CENTER_ENCRYPTION_KEY, MOZOUT_EMAIL_CENTER_KEEP_SIGNUPS (keep the sign-ups table when the plugin is deleted).

Requirements: WordPress 6.0 or newer, PHP 7.4 to 8.5, OpenSSL extension. WooCommerce 7.0 or newer for the order emails.


Maintained by RLX Holdings.