phpmailer_init not being called
-
Hi there,
Since Gmail stopped the support for using username and password in external apps (like WordPress), I switched to your plugin for authenticating with Gmail. It works great, thanks for that!
But when sending an email with WordPress I usually rely on the
phpmailer_inithook to manipulate some things like adding my own email template and removing all recipients and send the mail to a test emailaddress only. It looks like you are not firing this hook inPostmanWpMailwhen sending an email and it looks like it will need some rework to make this possible.An alternative would be to add a filter before validating the
PostManMessage(by doing$message->validate($transport)inPostmanWpMail::sendMessage()) in which we can manipulate$message.So something like:
$message = apply_filters('postman_message_init', $message);Is that possible?
It would also be great if you could a
clearAllRecipients()method toPostmanMessageto clear all the recipients. And maybe some otherPHPMailermethods to manipulate (or check) the message as well.Please let me know what you think about it.
The topic ‘phpmailer_init not being called’ is closed to new replies.