https://github.com/nagariahussain/resend_integration
Resend Integration for Frappe
https://github.com/nagariahussain/resend_integration
Last synced: 2 months ago
JSON representation
Resend Integration for Frappe
- Host: GitHub
- URL: https://github.com/nagariahussain/resend_integration
- Owner: NagariaHussain
- License: other
- Created: 2023-06-28T11:19:47.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-08-27T17:20:08.000Z (about 2 years ago)
- Last Synced: 2025-05-03T21:32:44.354Z (5 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
## Resend Integration
[resend.com](https://resend.com) Integration for Frappe

## Installation
Follow [this](https://frappeframework.com/docs/v14/user/en/installation) documentation to setup bench and then you can install this app by running the commands below:
```sh
bench get-app NagariaHussain/resend_integration
bench --site install-app resend_integration
```### Setup
Head over to your [Resend](https://resend.com) dashboard and generate an API key, and paste it in **Resend Settings**:

#### Webhook Setup
Add webhook with URL:
```
https:///api/method/resend_integration.api.handle_resend_webhook
```Copy the signing secret from your webhook dashboard on Resend:

and paste it in **Resend Settings** in your Frappe instance.
### Sending Broadcast Emails
Use the **Resend Broadcast Email** DocType.
### API
You can send emails from your custom app or server scripts too:
```python
from resend_integration.api import send_resend_emailssend_resend_emails(
"Get discount!",
from_email="notifications@buildwithhussain.dev",
to_emails=["faris@frappe.io"],
email_html="Hey!
",
reply_to="hussain@frappe.io",
)
```> Note: You will need to verify your domain before you can use it to send emails. For example, in the above example, "buildwithhussain.dev" has been already verified from Resend dashboard.
#### License
AGPL 3.0