Email Integration
Receive HTML payment notification emails via Resend.
Get email notifications for payment events, delivered via the Resend transactional email API.
Setup
- Create a Resend account and get an API key
- Verify your sending domain or use Resend's default sender
- Add an Email connector in the Dunmore console or via the API
Supported Events
| Dunmore Event | Email Subject | Details |
|---|---|---|
payment.settled | "Payment received: $X.XX USDC" | HTML table with amount, network, endpoint, payer wallet, TX hash |
payment.failed | "Payment failed: $X.XX USDC (stage)" | HTML table with 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 |
Emails are sent as styled HTML with color-coded headers (green for settled, red for failed, blue for new customers, amber for milestones).
Configuration
{
"type": "email",
"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 | Array of recipient email addresses |
API Example
curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"type": "email",
"config": {
"apiKey": "re_xxxxxxxxxxxx",
"from": "notifications@yourdomain.com",
"to": ["dev@example.com"]
},
"eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
}'