Skip to main content

Mail

OneDay.Build uses Resend to send emails to platform users.

Register with Resend​

First, you need to register with Resend.

Bind Domain​

Bind your platform's domain with Resend. For instructions on how to bind, click here.

Get API KEY​

Get your Resend API key from the Resend dashboard and add it to your .env file:

RESEND_API_KEY=your-api-key

Configure Emails​

You can configure Resend's email functionalities in app/api/send, including referencing email templates and setting sending email addresses.

For email templates, you can find them in components/EmailTemplate. We provide a template for sending emails to users who forgot their password. You can modify or create email templates as needed.

SMTP​

Resend also provides SMTP services. You can view the documentation. After setting up on the platform, fill in the corresponding key in .env.

EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=
EMAIL_SERVER_HOST=
EMAIL_SERVER_PORT=
EMAIL_FROM=your-domain-name.com