Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author dominic_ks

    (@dominic_ks)

    Hello,

    Thanks for reporting your issue.

    As a quick side note – adding the routes to the whitelist on the jwt_auth_whitelist is only necessary if you’re also using the jwt-auth plugin, it should have no impact on emails being sent.

    When you say the plugin is not working, and you’re not getting the email, can you please be more specific about what is happening? i.e. when you send a request to /wp-json/bdpwr/v1/reset-password are you getting a success response or an error?

    Another side note on using the SMTP plugins, I’m not sure how you tested this, but I have found in the past that using the Send Test Email type function with the likes of Easy WP SMTP that it’s not a good test of emails from WP more generally, and I’d suggest attempting to send a password reset request from the main /wp-login.php screen to check that you receive the email. It’d be a better test of whether emails coming through wp_mail are being delivered OK.

    If you’re getting success responses from the reset-password route, I’d also suggest using a plugin like WP Mail Logging to check if WP is sending the email, if the email appears in the log here, it would mean that the plugin is sending it OK and the problem lies elsewhere.

    Thread Starter germanoalves

    (@germanoalves)

    the behavior is strange. I installed the “WP MailCatcher” plugin to monitor email sends and sending it manually within the WP dashboard works. But when testing my code in reactj, the request status ‘200’ appears in the browser but the email does not arrive nor is it registered in the ‘wp mail catcher’ plugin”

    Plugin Author dominic_ks

    (@dominic_ks)

    OK, yes it is strange, I’m not sure what I can suggest other some deeper debugging of the site. There’s the usual – trying with all other plugins deactivated to ensure it’s not conflicting with anything. But aside from that by temporarily dumping some info out for example updating the api.route.reset-password.php file from line 33, which currently says:

    $user->send_reset_code();

    And update to:

    $sent = $user->send_reset_code();
    var_dump( $sent );
    die()

    If you then sent the request from Postman or something you’d see if the code at least thinks that it’s sending the email.

    Thread Starter germanoalves

    (@germanoalves)

    Hello! Thank you for your help! The plugin is amazing and the support is incredible! I uninstalled and reinstalled the plugin again and it worked! Thanks!

    Thread Starter germanoalves

    (@germanoalves)

    ^^

    Plugin Author dominic_ks

    (@dominic_ks)

    As per my other message, glad it’s working now!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘problem send emails’ is closed to new replies.