Ctan Li
Ctan Li

Reputation: 187

Firebase gets invalid email error message

I get this error after creating user and tried to send verification email always get this error for invalid email, while the email is registered and valid.

Optional(Error Domain=FIRAuthErrorDomain Code=17008 "Missing sender" UserInfo={NSLocalizedDescription=Missing sender, error_name=ERROR_INVALID_EMAIL})

Auth.auth().currentUser?.sendEmailVerification(completion: { (error) in
    if error != nil {
        print(error.debugDescription)

        let alert = UIAlertController(title: NSLocalizedString("Error", comment: "Error"), message: NSLocalizedString("Unable to send verification, Please check provided email and try again.", comment: "Unable to send verification, Please check provided email and try again."), preferredStyle: .actionSheet)
        alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in
        }))
        self.present(alert, animated: true, completion: nil)
        AppDelegate.instance().dismissActivityIndicatos()
        return
    }

Thanks for your help

Upvotes: 1

Views: 1663

Answers (1)

bojeil
bojeil

Reputation: 30838

It says missing sender. This could be an issue in your email template. Did you customize the email sender field in the Firebase Console by any chance?

Upvotes: 2

Related Questions