Mô tả
Lettermint is a professional email delivery plugin that seamlessly integrates with WordPress’s built-in wp_mail() function to send transactional emails through the Lettermint email service. Based in Europe, Lettermint provides reliable email delivery with excellent deliverability rates.
Features
- Seamless Integration: Works with wp_mail() – no code changes required
- Europe-based Service: GDPR compliant email service based in Europe
- Easy Configuration: Simple setup with just your API token and sender email
- Comprehensive Logging: Optional email activity logging with detailed information
- Conflict Detection: Automatically detects and warns about conflicting email plugins
- Test Email: Built-in test email functionality to verify your setup
- Configure via wp-config: Set any option with a constant in wp-config or an environment variable, not just the dashboard
- WP-CLI Support: Check your API token and send test emails from the command line with
wp lettermint
How It Works
- Install and activate the Lettermint plugin
- Get your API token from Lettermint Dashboard
- Configure your settings in WordPress admin under Settings > Lettermint
- All WordPress emails will automatically be sent through Lettermint
Requirements
- WordPress 6.4 or higher
- PHP 7.4 or higher
- Lettermint account and API token
Configuration
Required Settings
- API Token: Your Lettermint API token from your project
Optional Settings
- From Email Address: Custom sender email address (uses WordPress default if empty)
- Force Email Address: Override sender addresses set by plugins with your configured email
- Enable Logs: Keep track of email activities and API responses
External Services
This plugin uses an external service to deliver transactional emails via the Lettermint API.
- Service Name: Lettermint API (https://lettermint.co)
- Purpose: This service is used to send transactional emails generated by WordPress (e.g. password resets, contact form notifications, WooCommerce emails, etc.) through the Lettermint email infrastructure.
- What Data Is Sent: Each time an email is sent via WordPress, the following data is sent to the Lettermint API:
- Email recipient(s)
- Subject
- Email content (HTML and plain text)
- Sender email address
- Headers (optional)
- When Is Data Sent: Data is only sent when an email is triggered by WordPress and the plugin is active and properly configured.
- Where: All data is sent to Lettermint’s API endpoint:
https://api.lettermint.co - Terms and Policies:
The plugin only communicates with Lettermint’s servers when sending an email and does not transmit or collect any other data beyond what is needed to send the email.
Ảnh màn hình



Cài đặt
- Upload the plugin files to the
/wp-content/plugins/lettermintdirectory, or install the plugin through the WordPress plugins screen directly - Activate the plugin through the ‘Plugins’ screen in WordPress
Then set it up in one of two ways:
Option 1: Configure in the dashboard
- Go to Settings > Lettermint
- Enter your Lettermint API token
- Adjust the sender address and other options as needed
- Test your configuration using the built-in test email feature
Option 2: Configure with constants or environment variables
Prefer to keep your settings out of the database? Define them as PHP constants in wp-config, or as environment variables. This suits staging and production setups and config-as-code deployments.
define( 'LETTERMINT_API_TOKEN', 'lm_...' );
You can also add a constant from the command line with WP-CLI, which edits wp-config for you:
wp config set LETTERMINT_API_TOKEN lm_...
A constant takes precedence over an environment variable, which takes precedence over anything saved in the dashboard. Settings defined this way are shown as read-only on the settings screen.
Available names:
LETTERMINT_API_TOKEN— your Lettermint API tokenLETTERMINT_FROM_EMAIL— sender email addressLETTERMINT_FROM_NAME— sender nameLETTERMINT_FORCE_EMAIL— use the sender email for all outgoing mail (1/0)LETTERMINT_FORCE_FROM_NAME— use the sender name for all outgoing mail (1/0)LETTERMINT_FORCE_HTML— always send emails as HTML (1/0)LETTERMINT_ROUTE_SLUG— custom route slugLETTERMINT_TAG— tag applied to all emailsLETTERMINT_ENABLE_LOGS— enable activity logging (1/0)
Boolean settings accept 1/0 as well as true/false.
Verify with WP-CLI
If you use WP-CLI, the plugin adds a lettermint command.
Check that your API token is valid:
wp lettermint status
Send a test email through Lettermint to confirm delivery:
wp lettermint test you@example.com
Hỏi đáp
-
Where do I get my API token?
-
You can get your API token from the Lettermint Dashboard in your project settings.
-
Will this work with my existing WordPress emails?
-
Yes! The plugin seamlessly integrates with WordPress’s wp_mail() function, so all plugins and themes that send emails will automatically use Lettermint.
-
What happens if there’s a conflict with another email plugin?
-
The plugin automatically detects common email plugins and shows a warning if conflicts are detected. You should deactivate other email plugins to avoid conflicts.
-
Can I test if emails are working?
-
Yes! The plugin includes a built-in test email feature in the Settings > Lettermint > Test Email tab.
-
Is logging required?
-
No, logging is optional but recommended during setup to help troubleshoot any issues. You can disable it once everything is working properly.
-
Can I configure the plugin with constants or environment variables?
-
Yes. Every setting can be supplied with a PHP constant or an environment variable instead of the settings screen, which keeps secrets and environment-specific values out of the database. See the Installation section for the available names.
-
Does the plugin support WP-CLI?
-
Yes. The plugin adds a
wp lettermintcommand with two subcommands:wp lettermint statuschecks that your API token is valid, andwp lettermint testsends a test email.
Đánh giá
Người đóng góp & Lập trình viên
“Lettermint” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Lettermint” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.5.0
- Added WP-CLI support:
wp lettermint statuschecks that your API token is valid, andwp lettermint testsends a test email - Any setting can now be configured with a constant in wp-config or an environment variable
- Logs are now stored in a dedicated
{prefix}_lettermint_logstable with an indexedcreated_atcolumn, replacing the previous autoloaded option - Fixed memory exhaustion caused by base64-encoded attachment payloads in log entries; new entries store filename and size only
- Existing log entries are cleared on upgrade to immediately relieve memory pressure; the old
lettermint_logsoption is removed - Logging defaults to off for new installs; the upgrade preserves logging for installs that previously had it enabled
- Plugin options and the logs table are removed on uninstall
- Updated Dutch translations
- Bumped minimum WordPress version to 6.4
1.4.3
- Tested up to WordPress 7.0
- Updated admin header design to match new Lettermint dashboard branding
1.4.2
- Added WordPress and plugin version to test email footer
- Added dismissible notice on logs page explaining Success status
1.4.1
- Fixed RFC 5322 compliance: from name now properly quoted for special characters (commas, ampersands, etc.)
- Fixed HTML entities in blog name being sent as encoded text (e.g., & instead of &)
1.4.0
- Plugin now sends all emails through Lettermint when API token is configured
- From Email Address is now optional (uses WordPress default when empty)
- From Name is now optional (uses site name when empty)
- Force Email Address and Force Name now work independently of each other
- Simplified setup: just add your API token and you’re ready to go
1.3.1
- Fixed sender email now applies even when Force Email Address is disabled (allows plugins to override)
- Improved description text for Force Email Address option
- Fixed From email field placeholder to show WordPress default email instead of admin email
1.3.0
- Added API Token Test button to validate token before saving
- Added Tag setting in Advanced Settings to tag all emails from a site
- Added “From” column in logs table
- Logs now capture all WordPress emails, including those sent via the default mailer
- Logs are automatically cleared when disabling logging
- Updated Dutch translations
1.2.1
- Added “Force HTML” option in Advanced Settings for sites where HTML emails are sent as plain text
1.2.0
- Fixed HTML emails not rendering correctly
- Improved logs: added Subject and To columns for better overview
- Added View Error button to see detailed error information in a modal
- Updated Dutch translations
1.1.0
- Added “View Details” button in logs table linking to Lettermint dashboard
- Improved interface
- Added advanced settings section with custom route support
1.0.1
- Added Dutch translation support
- Added sender name functionality with force override option
1.0.0
- Initial release
- Seamless wp_mail() integration
- API token and sender email configuration
- Test email functionality
- Comprehensive logging system
- Plugin conflict detection
- Professional WordPress admin interface
- GDPR compliant Europe-based email service
