Tutorials
Email

Email

Setting up AWS SES

Boilerpro comes with AWS SES integration out of the box.

AWS SES is very cheap, and you can send up to 3000 emails per day for free.

Need help? Ask us on Discord! (You need to purchase the pro plan!↗)

Ask us on Discord

Setup domain and identities

Before being to able to access the sandbox account, you need to setup the domain and identities.

Setup email sending

Once you have setup the domain and identities, you can start sending emails. The only thing you need to do is setup your sender address in the .env file:

.env
EMAIL_SENDER=your_sender_address

To begin customizing email sending, is important to know where everything lives in your app. Here’s a quick overview:

lib/constructs/aws-ses.ts:

This file defines the AWS SES service using CDK. You don't need to touch this.

resources/utils/email/sendEmail.ts:

This file contains the function you need to import on every lambda function you want to send email from. See for example implementation resources/lambda/webhook/stripe.ts or resources/lambda/cron-jobs/newsletter.ts

Request production access

Initially, you have access only the sandboxed account. To request production access, follow the instructions from the official documentation here (opens in a new tab).