Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook up Truth Sleuth to SendGrid (SMTP) #46

Open
luukee opened this issue Oct 16, 2024 · 0 comments
Open

Hook up Truth Sleuth to SendGrid (SMTP) #46

luukee opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@luukee
Copy link
Contributor

luukee commented Oct 16, 2024

Steps to Set Up Firebase SMTP with SendGrid:

  1. Get Your SendGrid API Key:

    • Log in to your SendGrid account.
    • Navigate to SettingsAPI Keys.
    • Create a new API key (if you don’t have one) and store it securely.
  2. Enable Email Templates in Firebase Authentication:

    • Go to the Firebase Console.
    • Open your project.
    • Go to AuthenticationTemplates.
    • In this section, you’ll find the email templates Firebase uses (for email verification, password reset, etc.).
  3. Add SMTP Settings in Firebase Authentication:

    • In the Firebase Console, go to AuthenticationSettings.

    • Scroll down to the Email Templates section.

    • Click Customize action emailsSMTP to enable custom email sending via SMTP.

    • Enter the following details:

      • SMTP Host: smtp.sendgrid.net
      • Port: 587 (or 465 if you prefer SSL)
      • Username: apikey (yes, this is literal; you use apikey as the username)
      • Password: Your SendGrid API key
      • Sender Address: [email protected] (or any other email address from your domain you want to use for sending)

      Example setup:

      SMTP Host: smtp.sendgrid.net
      Port: 587
      Username: apikey
      Password: Your_SendGrid_API_Key
      Sender Address: [email protected]
      
  4. Save Changes:

    • After entering these details, save your changes.

Now Firebase will use SendGrid to send any authentication-related emails (like email verification, password reset, etc.) from [email protected].

@luukee luukee self-assigned this Oct 18, 2024
@luukee luukee added the enhancement New feature or request label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant