firebaseui-web: Help understanding "Missing Sender" when trying to send password reset email
[ Warning : Designer trying to code]
When I try to send a password reset email, I see the “missing sender” alert in my window and the “auth/invalid-email” error in my console to go along with it. I suspect that this has something to do with my email configuration. I did my darnedest to customize my email domain. I followed the steps in the firebase console, and my email client was verified.
As background, my problems first arose when I simply tried to click the ‘send password reset’ button from the firebase console, under the contextual menu for each user. This seems to be as far as I’ve made it, attempting to send the email programmatically. Any clues/hints/guesses offered would be greatly appreciated.
I apologize for the poorly formatted code, below, I’m not sure how to add returns and tabs.
function sendPasswordReset() { var email = document.getElementById('email').value; // [START sendpasswordemail] firebase.auth().sendPasswordResetEmail(email).then(function() { // Password Reset Email Sent! // [START_EXCLUDE] alert('Password Reset Email Sent!'); // [END_EXCLUDE] }).catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; // [START_EXCLUDE] if (errorCode == 'auth/invalid-email') { alert(errorMessage); } else if (errorCode == 'auth/user-not-found') { alert(errorMessage); } console.log(error); // [END_EXCLUDE] }); // [END sendpasswordemail]; }
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (3 by maintainers)
Hi Matthew, so the issue is that there is an invalid character comma (,) in the Sender name. Since the sender name is also a part of the sender address, it needs to follow the email address standard, and I think comma is a reserved token. After I removed the the comma in Sender name, it seems the issue doesn’t appear anymore.
Woohoo! You rock! This has been killing me! It just worked for me as well. I can’t thank you enough for figuring that out. I’ll re-update my DNS records and see if my custom domain doesn’t work as well, as long as I keep the sender name the same. Sincerely, thank you for taking the time to help me,
Matthew