Skip to content
Plugin PantryPlugins

Plugins / Pantry Mail

Point WordPress email at a real SMTP server and confirm it works with one test message. Provider presets fill in the host and port. The last twenty sends are listed with their result so you can see what went wrong.

Compared with the popular plugins

The Pantry Mail settings screen in the WordPress admin, at Plugin Pantry > Mail.

What it does

  • SMTP host, port, encryption, username and password, applied through the phpmailer_init hook
  • Presets for Gmail, Microsoft 365, SendGrid, Mailgun, Postmark, Resend, Amazon SES, Brevo and custom
  • From name and from address override, with an option to force them on every message
  • Send a test email from the settings screen and see the server response
  • Log of the last 20 messages: time, recipient, subject, result and error text, stored in one option
  • Password can be defined as the PANTRY_MAIL_PASSWORD constant in wp-config.php so it never touches the database; the screen says plainly where it is stored

What it does not do

  • No OAuth flows
  • No API-based sending (SMTP only)
  • No sending queue or retries
  • No open or click tracking
  • No full searchable log
  • No external requests other than the SMTP connection itself

Measured footprint

Zip size
21 KB
Lines of PHP
1,465
Options
pantry_mail_settings, pantry_mail_log
Post meta
none
Custom tables
none
Post types
none
Cron events
none
Transients
none
Admin assets
includes/core/assets/pantry-admin.css on the settings screen only, includes/core/assets/pantry-admin.js on the settings screen only, assets/admin.js on the settings screen only (preset autofill)
Front-end assets
none
External requests
SMTP connection to the configured host and port, only when SMTP is enabled
Measured on
2026-09-12

Compatibility

WordPress
6.4 or newer, tested to 7.1
PHP
8.1 or newer
Where it lives
Plugin Pantry > Mail
Licence
GPLv2 or later

Every setting on the Pantry Mail screen and what each one does, with the hooks it publishes: the same text that ships in the plugin README.

  • Full searchable log with resend
  • Fallback account when the primary fails
  • Failure alerts
  • API senders for Resend, Postmark and SES

These modules ship in Pantry Pro now. None of this is in the free plugin, and none of it is switched off inside it: Pro is a separate plugin, and one key switches on every module whose free plugin is active.

Read the module documentation

Changelog

All notable changes to Pantry Mail are documented in this file, in the Keep a Changelog format.

1.1.0 - 2026-09-12

Added
  • pantry_mail_settings_after action, fired at the end of the settings screen so an add-on can put its own panel there. Nothing in the plugin's own behaviour changes.

1.0.0 - 2026-09-12

Added
  • SMTP host, port, encryption, username and password, applied through the phpmailer_init hook.
  • Provider presets for Gmail, Microsoft 365, SendGrid, Mailgun, Postmark, Resend, Amazon SES and Brevo, plus Custom.
  • From name and from address override, with a Force option to apply it on every message.
  • Send a test email from the settings screen, with the result shown as a notice.
  • Log of the last 20 messages: time, recipient, subject, result and error text, stored in one option.
  • Password can be set with the PANTRY_MAIL_PASSWORD constant in wp-config.php instead of the database.