Hook
More breakout videos from this creator.
Here's how to send your users emails So let's say you want to authenticate your users through some sort of registration form where you will be sending them a confirmation email to make sure it's done. They click register, they get a notification saying that we sent them an email. And if you go to the email, you can see we have an email here. So all you need to do is track the user's information. So for example, here we're tracking the name, the email and password. So in your registration form, you'll want to be able to like track the values here. And then send that information to some sort of mail backend. And first we're using Resend, which is an email API tool for developers, which just makes sending emails much easier. And basically here we're just grabbing the user's email that he used and then we just have a couple fields where we have our email that we want to display for them. We have their email that we're sending it to. We have the subject of the email and finally, here we have the email itself, which is just a bunch of HTML code that has some text. And yeah, that's all really it. We're just taking the user's email using Resend to send them an email using the values that they input.