You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何修改Firebase发送验证/找回密码邮件的发件邮箱(AngularFire Web环境)

How to Change Firebase Auth Email Sender Address for Your AngularFire App

Hey there! I’ve tackled this exact issue with Firebase authentication emails before, so let me break down the two main ways to update that default noreply@admob-app-id-123456789.firebaseapp.com address.

Option 1: Use a Custom Domain with Firebase Hosted Emails (No SMTP Required)

This is the simplest approach if you already have a custom domain set up with Firebase Hosting:

  • Go to your Firebase Console, select your project, and navigate to Authentication > Templates.
  • At the top of the page, you’ll see a section labeled "From email address". Click the Edit button next to it.
  • You’ll have two choices here:
    • Use a subdomain of your Firebase Hosting domain (like noreply@yourdomain.com). Firebase will automatically handle the DNS records and verification for you—just follow the prompts to verify ownership of your domain if you haven’t already.
    • Use a custom email address that’s not tied to your Firebase Hosting domain (like support@yourdomain.com). For this, you’ll need to verify the email address via a confirmation link sent to it first.

Once you select and verify your desired address, all auth-related emails (verification, password reset, etc.) will start coming from that new address immediately—no code changes needed in your AngularFire app.

Option 2: Configure a Custom SMTP Server (Full Control Over Email Delivery)

If you want complete control over the email server (like using your own Gmail workspace, SendGrid, or another provider), you can set up SMTP in Firebase:

  • In the Firebase Console, go to Authentication > Templates > Gear icon (Settings) > Custom SMTP.
  • Click Add SMTP server and fill in the details from your email provider:
    • SMTP server address (e.g., smtp.sendgrid.net for SendGrid)
    • Port number (usually 587 for TLS, 465 for SSL)
    • Username and password provided by your email service
    • The "From" name and email address you want to use (this will be what users see)
  • Save your settings, and Firebase will send a test email to verify the configuration works. If the test passes, all auth emails will now route through your SMTP server.

Quick Note for AngularFire Users

You don’t need to make any changes to your AngularFire code for either of these methods—Firebase handles the email sending entirely on the backend. Your existing sendEmailVerification() or sendPasswordResetEmail() calls will automatically use the new sender address once configured.

内容的提问来源于stack exchange,提问作者krv

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 03:35:35