• Resolved alleknalle

    (@alleknalle)


    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_init hook 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 in PostmanWpMail when 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) in PostmanWpMail::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 to PostmanMessage to clear all the recipients. And maybe some other PHPMailer methods to manipulate (or check) the message as well.

    Please let me know what you think about it.

Viewing 1 replies (of 1 total)
  • Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @alleknalle ,

    We hope this message finds you well.

    Thank you for reaching out to our Support team. We truly appreciate your kind words and valuable suggestion.

    I’ve shared your input with our technical team, and they will evaluate the possibility of including a similar hook in one of the upcoming sprints.

    If Post SMTP has been useful, you can also leave your kind reviews.

    Warm regards,
    Support Team – WP Experts

Viewing 1 replies (of 1 total)

The topic ‘phpmailer_init not being called’ is closed to new replies.