• Resolved smes

    (@smes)


    Hi Team,

    I’m very happy with your plugin and, overall, it works really great.

    I’ve configured the plugin to send mail via my Office 365 account. As mentioned above, everything has been working really well for a long time.

    However, it’s just come to my attention (from a user on my site) that the password reset email is not sending.

    I can’t figure out why. Every other email works great!

    I managed to turn on WP debugging to capture the email-related error, and here’s the log that I pulled down https://pastebin.com/RvGEiCiQ

    I don’t understand why I receive “SMTP Error: Could not authenticate” when every other email sends just fine.

    I really appreciate your help and support for this!

    Thank you so much! ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi @smes,

    When you get a chance, could you please let me know if you’re using WooCommerce lost password form and defined constants in wp-config.php or somewhere to secure your SMTP Password?

    Thanks!

    Thread Starter smes

    (@smes)

    Hello @sanzeeb3,

    Thanks for your reply!

    I’m not 100% sure if this answers your questions, but:

    1) The password reset form is the default one found here
    https://www.example.com/my-account/lost-password/

    2) I’ve defined the SMTP account password inside the wp-config file like this:
    define( ‘WPMS_ON’, true );
    define( ‘WPMS_SMTP_PASS’, ‘examplepassword’ );

    Is this what you’re referring to?

    Many thanks for your help! ??

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @smes,

    do you have the Force From Email checkbox enabled in the WP Mail SMTP plugin settings?

    If you don’t, please enable it and try the password reset again.

    Have a nice day!

    Thread Starter smes

    (@smes)

    Hello @capuderg – many thanks for your reply.

    Yes, the option “Force From Email” is already checked (so no change to my settings so far).

    I’ve also just attempted another password reset and the issue is still occurring.

    Do you have any further suggestions?

    Thank you for your time, I appreciate it!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @smes,

    I’ve tried to reproduce this issue on my test site, but I can’t. Would you be willing to test a few things in order to debug this issue?

    Could you please install & activate this plugin: https://www.ads-software.com/plugins/log-emails/

    Try a new password reset.

    Then go to “Tools -> Email Logs”, select the password reset email, and tell me if the from email matches the From Email you have set in the WP Mail SMTP plugin settings.

    You can uninstall the “Log Emails” plugin at this point.

    Take care!

    Hi @smes,

    Thanks for the details! For the temporary fix, please remove the constants from wp-config.php and save those SMTP credentials directly on WP Mail SMTP settings.

    Have a good one! ??

    Thread Starter smes

    (@smes)

    Hello @sanzeeb3

    Many thanks for your reply. Following your instruction has resulted in successful email send for password resets, many thanks for that!

    I appreciate the time from you and your team very much!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @smes,

    I would like to reproduce this issue on my site in order to see where the problem is and fix it. Could you please answer these questions:

    1. which PHP version is your WP site running on?
    2. which WP version is your site running?
    3. please list all the plugins you are using, maybe there is a conflict causing this issue.

    Thank you!

    Thread Starter smes

    (@smes)

    Hello @capuderg,

    Sure, happy to help:

    PHP = 7.3
    WP Version = 5.4.1
    Plugins (there are quite a number) as per below.

    Advanced Order Export For WooCommerce (Pro)
    Aelia Currency Switcher for WooCommerce
    Aelia Foundation Classes for WooCommerce
    Akismet Anti-Spam
    Asset CleanUp: Page Speed Booster
    Autoptimize
    Beaver Builder Plugin (Pro Version)
    Beaver Themer
    Booster for WooCommerce
    Cloudflare
    Compress JPEG & PNG images
    Contact Form 7
    Geolocation IP Detection
    Heartbeat Control by WP Rocket
    InfiniteWP – Client
    Jetpack by WordPress.com
    Laybuy Gateway for WooCommerce
    Lazy Load by WP Rocket
    Monarch Plugin
    Pixel Caffeine
    PixelYourSite PRO
    PowerPack for Beaver Builder
    Product Feed PRO for WooCommerce
    UpdraftPlus – Backup/Restore
    Video User Manuals
    WooCommerce
    WooCommerce Menu Cart
    WooCommerce Payment Express Gateway
    WooCommerce PayPal Standard (Multi Account)
    Wordfence Security
    WP File Manager
    WP Mail SMTP
    WP User Avatar
    Yoast SEO Premium
    Yoast SEO: WooCommerce
    Yotpo Social Reviews for Woocommerce

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    a user was very kind and provided us with a staging site to debug this issue that we could not reproduce on our sites.

    For anyone else experiencing this issue. Please check your wp-config.php file and move the plugin’s constants code you added to the file, above the /* That's all, stop editing! Happy publishing. */ line. Like so: https://a.supportally.com/nw7JLN.

    Let us know if this resolves your issue.

    Have a nice day!

    Hi Gregor,

    I can confirm that moving the constant define lines above the the following line:

    /* That's all, stop editing! Happy publishing. */

    ..fixed the issue. My issue was that, all regular order related emails worked perfectly, but emails regarding new account creation and password reset resulted in authentication error.

    This should definitely be mentioned in installation instructions.

    Thanks for finding the issue!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @miikapk,

    thank you for confirming it.

    We have this documentation page about how to properly configure WP Mail SMTP plugin constants.

    Take care!

    Experienced the same issue, solved now. Overlooked /* That's all, stop editing! Happy publishing. */ in the documentation. Thank you @capuderg for the answer.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @tunghim,

    I’m glad this resolved the issue for you ??

    Have a nice day!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘” Could not authenticate” but only when sending password reset email’ is closed to new replies.