• Resolved Waseem Senjer

    (@waseem_senjer)


    Hello team,
    I’m trying to reduce my bounce rate, but I can not delete the user with bounced email as they already have EDD orders.

    I’ve added all of the bounced email addresses to my SES account suppression list but for some reason SES is still sending the emails, not sure why.

    I looked into the plugin code, but I found no WordPress filters which allow me to stop (short-circuit) the email-sending process. WordPress already provides this in the wp_mail()function, but since you override this function, I have no way to implement my code. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi Waseem,

    WP Offload SES Support Team here. Thanks for reaching out with your query, we would be happy to assist!

    At the moment there’s no way to stop the plugin from sending out an email via a recipient’s email address. We have received requests similar to this, but we don’t have an ETA for the feature.

    Perhaps you can use the wp_mail filter to change the recipient if it detects that original recipient is the one getting bounced?

    We also recommend contacting AWS support about the SES account suppression feature still sending out the emails.

    I hope this helps, let us know if you have any other questions.

    Thread Starter Waseem Senjer

    (@waseem_senjer)

    Thanks for your reply.
    Would the wp_mailfilter work? since the plugin is overriding the wp_mail()function.

    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @waseem_senjer ,

    Yes, you can use the WordPress core “wp_mail” filter which is implemented in Offload SES. WP Offload SES re-applies that filter so anything you pass to that would also get passed onto Offload SES.

    Hope that clarifies! Please let us know if you have any further concerns.

    Plugin Author Delicious Brains

    (@deliciousbrains)

    Hey @waseem_senjer,

    With WP Offload SES and WP Offload SES Lite 1.6.6, if you return an empty array from the wp_mail filter, the plugin will no longer try and queue and send the email.

    This means you can now cleanly stop an email from being sent based on some condition, such as the $to variable’s contents.

    -IJ

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is there a way to stop an email from being sent?’ is closed to new replies.