Add support for Resend mailer
This update expands the mailer support by adding the Resend mailer as an alternative to NodeMailer and Cloudflare Mailer. After setting the environment variable 'MAILER_PROVIDER' to 'resend', users can utilize the Resend HTTP API for mailing. Necessary instructions and variable settings regarding the usage of Resend mailer have also been added to README.md and related modules.
This commit is contained in:
@@ -25,6 +25,12 @@ To use Cloudflare, please set the environment variable `MAILER_PROVIDER` to `clo
|
||||
MAILER_PROVIDER=cloudflare
|
||||
```
|
||||
|
||||
To use [Resend](https:///resend.com)'s HTTP API, please set the environment variable `MAILER_PROVIDER` to `resend`.
|
||||
|
||||
```
|
||||
MAILER_PROVIDER=resend
|
||||
```
|
||||
|
||||
### Send an email
|
||||
|
||||
```tsx
|
||||
@@ -42,4 +48,14 @@ async function sendEmail() {
|
||||
}
|
||||
```
|
||||
|
||||
If you're using the `cloudflare` provider, please also read the instructions of the package [Vercel Email](https://github.com/Sh4yy/vercel-email) to setup your Workers.
|
||||
## Cloudflare
|
||||
|
||||
If you're using the `cloudflare` provider, please also read the instructions of the package [Vercel Email](https://github.com/Sh4yy/vercel-email) to setup your Workers.
|
||||
|
||||
## Resend
|
||||
|
||||
If you're using the `resend` provider, please add the following environment variables:
|
||||
|
||||
```
|
||||
RESEND_API_KEY=your-api-key
|
||||
```
|
||||
Reference in New Issue
Block a user