我在将 Firebase 验证电子邮件发送到垃圾邮件文件夹时遇到问题,我决定像这样更改电子邮件模板:
发件人姓名:从“noreply”到“AppName”。 发件人:从“noreply@...firebaseapp.com”到“verification@...firebaseapp.com”
但我仍然收到旧的 noreply 电子邮件。任何想法为什么?
我像这样发送电子邮件(Swift):
Auth.auth().sendSignInLink(toEmail: emailAddress, actionCodeSettings: actionCodeSettings)
答案 0 :(得分:0)
请检查并告诉我你得到了什么。
let actionCodeSettings = ActionCodeSettings()
actionCodeSettings.url = URL(string: "firebase url") // firebase url looks like this firebase-productid.firebaseapp.com & firebase product id will find in googleservices-info.plist
actionCodeSettings.handleCodeInApp = true
actionCodeSettings.setIOSBundleID(Bundle.main.bundleIdentifier!)
Auth.auth().sendSignInLink(toEmail:email, actionCodeSettings: actionCodeSettings) { error in
if error != nil {
print(error)
}
}