From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Resend API key and install

Resend API key and install

So we're going to start to set up our email receipt functionality, and we're going to be using Resend, which is a developer-focused service designed to simplify the process of sending emails through your application. And it has a pretty simple API that we can use, and it's free. So we're using the free tier. It's up to 100 emails per day and on one domain. And then you can upgrade, of course, if you're looking to use this in production. So let's sign in. I'm signing in using Google, but you can also use GitHub. And then we need to create an API key. So over here on the left, click on API keys, and then Create API Key. And I'm just going to call this ProStore. Full access, all domains. Click Add, and then we want to copy this. So now let's go into the .env, and we're going to call this Resend API Key. And we'll paste that in. And then we also need the sender email. And ultimately, this would be an email that you own and you own the domain for. But there's actually a test email we can…

Contents