Reputation: 23
community!
I'm configuring Sendgrid as SMTP for Firebase Authentication Email but when I try to send an email the server sends it with content-type: text/plain
So the HTML content is not recognized when the user receives it
When default SMTP Firebase service sends the email with Content-Type: multipart/alternative the html content is recognized
So, Why do I need to change the default SMTP firebase service?
Basically, because when SMTP firebase service is set up as sender some emails are not received with a good reputation so they are identified as SPAM so that is why I need to change the SMTP service to Sendgrid.
Current Firebase SMTP configuration
I have looked into the SendGrid documentation but I did not find useful resources for fix this.
I appreciate any ideas.
Upvotes: 2
Views: 780
Reputation: 86
FIREBASE/MAILGUN HTML SETTINGS
https://identitytoolkit.googleapis.com/admin/v2/projects/*{FIREBASE_PROJECT_ID}*/config?updateMask=notification.sendEmail.resetPasswordTemplate.bodyFormat
(Add your project ID in there!){notification:{sendEmail:{resetPasswordTemplate:{bodyFormat: "HTML"}}}}
and click "Close" at the bottom.If you get HTTP/1.1 200 OK
within the response, job done.
You can now send HTML emails using Firebase using Sendgrid, Mailgun or any other email service!
Upvotes: 6