How to manage emails in this project.
English
简体中文In the WR.DO project, there are two features that rely on Resend, one is email login (magic link), and the other is email sending feature (if you need to receive email feature, please refer to /docs/developer/cloudflare-email-worker).
The RESEND_API_KEY
and RESEND_SROM_SMAIL
configured in the .env
file are used for login feature,
while the Resend key required for email sending feature needs to be added by
yourself in the domain configuration after logging into the admin panel (/admin/domains
).
Two features can use the same key, as both essentially use Resend to send emails.
The following will demonstrate how to configure the Resend key required for login.
Steps
Create an account
If don't have an account on Resend, just follow their steps after signup here.
Create an API key
After signin on Resend, he propurse you to create your first API key.
Copy/paste in your .env
file.
RESEND_API_KEY = re_your_resend_api_key;
RESEND_FROM_EMAIL="you <[email protected]>"