Password Reset Mail not sent
-
The password reset mail is not being sent on our website.
I deactivated all other plugins and switched to the original theme as described here: https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test
I can also say with certainty that there is no problem with the mail function, as the problem persists on our live site where we send mails using sendgrid SMTP, as well as locally where we use mailhog to catch mails reliably. Also, all other mails are being sent correctly and without problems.
After doing some debugging, i found that the um_user function is not returning the email address of the user.
The mail is being sent correctly as soon as i change the code on line 1549 of core/class-user.php from:
UM()->mail()->send( um_user( ‘user_email’ ), ‘resetpw_email’ );
to:
UM()->mail()->send( $userdata->user_email, ‘resetpw_email’ );Why the um_user function doesn’t work, i don’t know. It would be very helpful if this could be fixed in a future version.
- The topic ‘Password Reset Mail not sent’ is closed to new replies.