Support » Plugin: WP Gmail SMTP » Critical – 1.2.1 Broke all email sending

  • locatejp

    (@locatejp)


    Hi, thank you first for such an amazing plugin. However, when I updated to 1.2.1 my email stopped working (on 4/2/21). There is no telling how many emails (and $$$) I missed out on. I noticed that email was failing using Contact Form 7 and the error message was the first one (Message failed to send). I tried a test email on Gmail SMTP and it showed that that was failing. I went through all of my API credentials and they were valid. Before going into more deep troubleshooting I rolled back the version (using the Rollback plugin) to 1.2.0 and everything started magically working. I had a similar issue with Contact Form 7 recently. I’m not sure what the root cause is. Any help you can offer would be appreciated, and this issue might hit a broad audience. Thanks!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Noor Alam

    (@naa986)

    @locatejp, Version 1.2.1 uses WordPress’s mail filter, pre_wp_mail which was introduced in 5.7, instead of redefining the wp_mail function. If you have another plugin with this filter it may cause an issue.

    Do you have a staging site where I can see those errors? You can also deactivate one plugin at a time to find the conflicting plugin.

    Thread Starter locatejp

    (@locatejp)

    Thank you for your prompt response! I do not have a staging site. Do you think it could have to do with Contact Form 7? As I mentioned previously I had the same issue when updating to a new version on that plugin. What is the suggested ‘fix’ for this?

    Plugin Author Noor Alam

    (@naa986)

    @locatejp,

    Do you think it could have to do with Contact Form 7?

    I don’t think so. I tested it with Contact Form 7. The only way to find out is to deactivate one plugin at a time. I’m not sure how you would do it on a live site.

    Thread Starter locatejp

    (@locatejp)

    @naa986 thanks again for your prompt responses. You said:

    Version 1.2.1 uses WordPress’s mail filter, pre_wp_mail which was introduced in 5.7, instead of redefining the wp_mail function

    So it sounds like it could be an issue where pre_wp_mail is causing my messages to fail. I’m not sure if this is within the scope of support you are able to suggest or not, but then again maybe it could affect a lot of your user base. How would I test that and what would the suggested course of action be to put in a fix? Thanks-

    Plugin Author Noor Alam

    (@naa986)

    @locatejp, First you need to identify the plugin that is causing this issue. I can then investigate the code and try to find a workaround.

    Thread Starter locatejp

    (@locatejp)

    @naa986 Here is a video that appears to identify the plugin. Let me know what you think – https://drive.google.com/file/d/1GQeLoM_ZCJ1fNS6K7boB8YNwN_3O1Cp1/view.

    Plugin Author Noor Alam

    (@naa986)

    @locatejp, Thanks a lot for the video. I actually wanted to find the plugin that Gmail SMTP 1.2.1 is conflicting with. I know it’s not contact form 7 because I have tested it. But you have other plugins. Here is what you can do:

    1) Keep Gmail SMTP 1.2.1 active
    2) Deactivate one plugin from the plugins menu
    3) Go to the contact form and try to send an email

    a) No error? – That’s the conflicting plugin. Let me know what it is so I can check the code.
    b) Still an error? – You know that’s not the plugin. You can go back to the plugins menu and reactivate it.

    You just need to repeat this process for all the plugins.

    You can also bulk deactivate like 5 or 10 plugins to make it faster. Once the error is gone you can then check each one from that group.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.