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.

Section intro

Section intro

So in this section, we're going to implement e-mail receipts when a user places and pays for an order. Now, we're going to be using a service called Resend. And they offer e-mail services for developers. So if you need to send emails from your app, we'll start by creating a Resend account. And we want to generate our API keys for our project. And then we're going to create the e-mail template. And we're using a package called Resend. But we're also going to be using a library called React e-mail, which is a great library that gives you pre-built UI components for constructing these e-mail templates so you don't have to do it from scratch. And you can also use Tailwind as well, which we will be doing. And then once we have the template, we can add some sample data so that we can preview it in the browser to see what it'll look like. And then finally, we'll send the e-mail from the app once the user goes through and pays for an order. So let's get started.

Contents