Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
How to send a verification email during registration? Firebase, React Native

I have a registration form, the user puts his info then I submit it to a firestore collection. I want to send a verification email with the same button, how can I do that?

here's my signup button.

 onSignUp() {
    if (
      this.state.email != '' &&
      this.state.password != '' &&
      this.state.name != '' &&
      this.state.phonenumber != '' &&
      this.state.lastname != ''
    ) {
      const { name, lastname, phonenumber, email, password} = this.state;
      firebase
        .auth()
        .createUserWithEmailAndPassword(email, password)
        .then((result) => {
          firebase
            .firestore()
            .collection('Patients')
            .doc(firebase.auth().currentUser.uid)
            .set({
              name,
              lastname,
              phonenumber,
              email,
   
            });
          console.log(result);
        })
        .catch((error) => {
          alert('Sorry it seems you entered wrong email or/and password');
          console.log(error);
        });
    } else {
      alert('Please, make sure you filled all the fields with correct info!');
    }
  }

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

To send an email verification message call user.sendEmailVerification() after the account was created or signed in. So:

firebase
  .auth()
  .createUserWithEmailAndPassword(email, password)
  .then((result) => {
    result.user.sendEmailVerification();
    ...

Also see the RNFirebase documentation for that method.

about 4 years ago · Juan Pablo Isaza Report

0

There are too many modules which can be used. I use nodemailer.

Official website

https://nodemailer.com/about/

yt video

https://www.youtube.com/watch?v=nF9g1825mwk

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!