Resend Integration
Send styled HTML payment emails via the Resend API with XSS-safe templates.
Connect Dunmore to Resend for transactional email notifications with styled HTML templates and XSS-safe output escaping.
Setup
- Create a Resend account and get an API key
- Verify your sending domain or use Resend's default sender
- Add a Resend connector in the Dunmore console or via the API
Supported Events
| Dunmore Event | Email Subject | Details |
|---|---|---|
payment.settled | "Payment received: $X.XX USDC" | Amount, network, endpoint, payer wallet (linked to Basescan), TX hash (linked to Basescan) |
payment.failed | "Payment failed: $X.XX USDC (stage)" | Amount, stage, error code, error message, endpoint |
customer.first_payment | "New customer! First payment received" | Wallet address and first payment amount |
customer.milestone | "Customer milestone: $X.XX USDC total spend" | Wallet address, milestone name, total spend, payment count |
All user-supplied values are HTML-escaped to prevent XSS. Emails include color-coded headers and clickable Basescan links.
Configuration
{
"type": "resend",
"config": {
"apiKey": "re_xxxxxxxxxxxx",
"from": "notifications@yourdomain.com",
"to": ["dev@example.com", "finance@example.com"]
},
"eventTypes": ["payment.settled", "payment.failed"]
}
| Field | Required | Description |
|---|---|---|
apiKey | Yes | Resend API key |
from | Yes | Sender email address (must be verified in Resend) |
to | Yes | Recipient email address(es) — array or comma-separated string |
API Example
curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"type": "resend",
"config": {
"apiKey": "re_xxxxxxxxxxxx",
"from": "notifications@yourdomain.com",
"to": ["dev@example.com"]
},
"eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
}'