Same.. I have multiple plugins which send emails to users and they’re not getting them. But the test email works perfectly?!
-
This reply was modified 8 years, 6 months ago by
Mikey B.
Postman only works with plugins that support the WordPress wp_mail API. If your plugin handles email directly, it will simply ignore Postman.
Which plugins give trouble?
Hi Jason,
The plugin has been custom developed using “learndash”
My developer has just emailed me saying “The plugin uses the normal mail function which wordpress also uses”
?
Well, by default WordPress uses PHPMailer internally. Like this:
Some plugin -> WordPress -> PHPMailer -> SMTP server
Postman overrides the behaviour of WordPress to provide an alternate mailer.
Some plugin -> WordPress -> Postman -> SMTP server
It isn’t exactly clear what your developer means by “the normal mail function”. However if your custom plugin also uses PHPMailer internally, it is ignoring Postman.
Custom plugin -> PHPMailer -> SMTP server
Your plugin must call wp_mail in order to delegate sending mail via WordPress itself:
https://developer.wordpress.org/reference/functions/wp_mail/
Ok thanks Jason, I’ll ask and get back to you
I have been having the same exact problem! The test email is sending great, but no forms are working. I have tried with both Contact Form 7 and NinjaForms. Both fail. I am very eager to see what the problem is!