Hello the community,
How are you?
I'm facing a problem when I try to send email through my app. That's very simple, when a new user signs up, he will receive an email to confirm his email address. Basic.
I read a lot of things, ask GPT some things but:
-I don't understand how does it work
-All the codes are tried don't work
I watch some videos online but I don't find anyone telling me the real solution. Plus, I saw they Google disabled Dynamic Links.
I'm totally lost. But that's the final step to run my IOS app.
I've found only one video telling me half of the solution. I know some things work, but not fully.
Could you please help me?
Emails are sent via an SMTP server. See Simple Mail Transfer Protocol - Wikipedia . I don't know if Firebase provides SMTP service; if not, you may need some separate service, like Amazon SES or e.g. SendGrid. Also try googling "SendGrid alternatives".
Many online services provide REST API for sending emails - no SMTP involved. (Again, don't know if Firebase provides something like that).
BTW Wikipedia contains a User privacy controversies section about Firebase: Firebase - Wikipedia .
1 Like
Hello, Firebase doesn't provide a SMTP but OVH does. I have linked Firebase to OVH to send the templates by email.
Considering what I understood, Firebase tells the email provider (OVH in my case) to send an email.
I saw some minutes again that I have received an email, but an error notification. So I don't clearly understand...
Unfortunately I am not familiar with both Firebase and OVH, so cannot give any other advice besides reaching out to OVH's technical support.
Also please note that this thread may be considered off-topic on this forum, which is dedicated to Swift programming language.
1 Like
I think if you share the Swift code snippet which is trying to send an email message from your (server-side?) app, maybe someone more knowledgeable than me would be able to help.
1 Like
Ok thanks let me do that:
if !userFirebase.isEmailVerified {
userFirebase.sendEmailVerification { error in
if let error = error {
print("❌ Email verification error: \(error.localizedDescription)")
} else {
print("📧 Verification email sent to \(userFirebase.email ?? "")")
}
}
}
On the Firestre, there is no code, only templates.
This is clearly a Firebase question, not Swift. It would be better to post this on another forum that discusses Firebase, regardless of the programming language.
I thought the question is "how do I send a email from a Swift app", but it turned out to be "how do I call Firebase API".
3 Likes
Ok thanks for the advice, I post it on another section.
All the best!