E-mail Center plugin for WordPress: site e-mails through our API and signup forms with double opt-in

API & DocumentationWordPress, Websites & Automation·· 117 views· 3 min read

This plugin sends the e-mails of your WordPress site through E-mail Center instead of the server's normal sending. It adds newsletter signup forms and WooCommerce order e-mails. It uses only our public API, with the key of your MozOut account.

What it does

Site e-mails: everything sent through wp_mail (WordPress, WooCommerce, forms) goes through E-mail Center. There is a test send, and if the API fails, WordPress sends the e-mail the normal way.

Signup forms: the [mozout_email_subscribe] shortcode and the "Newsletter sign-up" block, with consent and double confirmation by e-mail.

WooCommerce: e-mails when an order is received, paid, shipped, completed, cancelled or refunded, plus a notice to the site owner. Each e-mail turns on separately, with texts in pt and en.

Test and log: a connection test with your e-mail balance, and the last 50 events.

What you need

WordPress 6.0 or newer, PHP 7.4 to 8.5 and the OpenSSL extension. For order e-mails, WooCommerce 7.0 or newer. A domain verified in E-mail Center, for the sender. And an API key, created in the API Center of My MozOut.

Installing, step by step

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

The API key and its permissions

The key needs email_center:read and email_center:write. It is kept 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. See how to create a key and pick its permissions.

Testing without spending

A sandbox_ key simulates every send and spends nothing. Use it for the test send and to try the form, then swap it for a prod_ key.

Good to know

Double confirmation: the API adds contacts straight away, so the plugin does the confirming. The signup waits in a table on your site until the person opens the e-mail link. Only then does it go to the API. The proof of consent (date, IP and accepted text) stays in that table, and unconfirmed signups are deleted after 7 days.

Sender: by default the plugin always uses the address at the verified domain and puts the original sender in Reply-To. See the records to publish for the domain.

WooCommerce e-mails: WooCommerce keeps sending its own. Turn on only the ones you want on top of them.

With the full plugin: it can run next to the all-in-one plugin. Turn on "Send through E-mail Center" in only one of them.

Help

If the test send fails, first check that the sender is at the verified domain. If that does not solve it, open a support ticket and tell us the plugin version and the message. The code is in the plugin repository, under the MIT license.

Ready to send your site e-mails through E-mail Center?

Download the latest release

SEE ALSO

Adding a sender domain to E-mail Center

Creating an API key

The repository on MozOut Git

SDKs and integrations, in the API documentation

RECOMMENDED PRODUCT

WordPress hosting

One-click install, updates handled, and speed that holds up. from R118.80/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.