वर्णन
By default, MailPoet sends emails via PHP Mail, its premium MailPoet Sending Service, or services like Amazon SES or SendGrid. But there’s a catch: Some SMTP providers (like Gmail) aren’t supported, and email logging isn’t possible.
➡ This plugin fixes that. It ensures all MailPoet newsletters are sent via your chosen SMTP plugin, so your WordPress email settings apply to newsletters, too – without extra setup or extra costs.
🛠 Works with popular SMTP plugins like:
✅ WP Mail SMTP (by WPForms – the most widely used SMTP plugin)
✅ FluentSMTP (lightweight, free, GDPR-friendly)
✅ Post SMTP (supports OAuth for Gmail, Outlook, etc.)
✅ Easy WP SMTP (simple & reliable)
✅ MailerSend, Brevo (formerly Sendinblue), and more
🎯 Why use this plugin?
✔ Ensures MailPoet emails follow your SMTP settings
✔ Works with Gmail & other SMTP providers MailPoet doesn’t support
✔ Enables email logging via your SMTP plugin
⚠ Important notes:
- Major MailPoet updates may require adjustments.
- Some advanced MailPoet features (like bounce handling) may behave differently.
✅ Test your setup with MailPoet test emails and real newsletters to ensure everything runs smoothly!
स्थापना
- Download or clone this plugin into your
/wp-content/plugins/
directory. - Make sure the folder is named something like
omppm-override-phpmail-mailpoet
. - Go to Plugins in your WordPress admin area and activate Override PHP Mail for Mailpoet (via wp_mail).
- In MailPoet > Settings, choose “Server (Standard)” or “PHP mail” as your sending method (so it normally uses
PHPMail
). - Configure your SMTP method in WP Mail SMTP (or your preferred SMTP plugin).
- If you’re using Gmail API or another specialized flow, ensure it’s properly set up in WP Mail SMTP.
- Send a test newsletter (or use the MailPoet test mail) and verify via WP Mail SMTP logs or email headers that the mail goes through your desired SMTP provider.
नेहमी विचारले जाणारे प्रश्न
-
Does this plugin replace MailPoet’s default sending method completely?
-
Yes. For all newsletters and test emails that would normally use “PHPMail,” it redirects to
wp_mail()
. However, if you are using MailPoet’s own “MailPoet Sending Service” or “SendGrid,” those remain unaffected. -
Will this plugin work with MailPoet 4, 5, or future versions?
-
It has been tested with MailPoet 5.x. MailPoet may change internal classes or architecture in future updates, which could break this override approach. We recommend testing on a staging site whenever you update MailPoet.
-
What if my emails still seem to go out via `mail()`?
-
- Double-check that you have the correct sending method set in MailPoet (“Server” / “PHP mail”), not an external SMTP inside MailPoet’s own configuration.
- Verify that WP Mail SMTP (or any other SMTP plugin) is active and configured.
- Check if the MailPoet test emails differ from real newsletter sends. Sometimes the test mail can take a different route.
-
Does this plugin require code changes in MailPoet?
-
No. But internally, it uses a “class alias” hack to replace MailPoet’s
PHPMail
class on the fly, which can be update-sensitive. If you see errors or your newsletter fails after a MailPoet update, deactivate and re-check plugin compatibility.
समीक्षा
योगदानकर्ते आणि विकसक
“Override PHP Mail for Mailpoet (via wp_mail)” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत योगदान केले आहे.
योगदानकर्तेभाषांतर करा “Override PHP Mail for Mailpoet (via wp_mail)” तुमच्या भाषेत.
विकासातील आग्रह?
कोड ब्राउझ करा, SVN संग्रहालय तपासा, किंवा विकास लॉग च्या RSS द्वारे सदस्यता घ्या.
बदलांची यादी
1.0.4
Veröffentlichungsdatum: 03. April 2025
- Added support for additional MailPoet email types (post notifications, welcome emails, automatic emails)
- Improved email type detection for better compatibility
1.0.3
Veröffentlichungsdatum: 19. Februar 2025
- Readme.txt updated.
= 1.0.1
Veröffentlichungsdatum: 23. Januar 2025
- Polished readme.txt and main plguin file headers.
= 1.0.0
Veröffentlichungsdatum: 15. Januar 2025
- Erstveröffentlichung