When to Use Email
- Transactional emails: Order confirmations, receipts, shipping updates
- Account notifications: Password resets, security alerts, welcome emails
- Rich content: HTML formatting, images, detailed information
- File attachments: Invoices, receipts, reports, documents (up to 40MB)
- Asynchronous communication: Messages that don’t require immediate attention
Email operates as a separate channel and does not participate in smart routing. You must explicitly specify
channel: "email" or send to an email address.Sending an Email
HTML Emails
Send rich HTML emails by includinghtmlBody. The text field serves as the plain-text fallback:
Attachments
Send files by including theattachments array. Each attachment can provide file content as base64 or a URL to fetch from.
Base64 Content
URL Path
Instead of encoding the file, provide a URL and Zavu will fetch it:Inline Images
Embed images directly in HTML usingcontent_id:
Attachment Fields
Each attachment must have either
content or path, not both. Total attachment size is limited to 40MB per email, and a maximum of 50 attachments per message.Request Fields
Channel Detection
If you send to an email address without specifying a channel, Zavu automatically selects email:Setting Up Email
Before sending emails, you need to configure your sender with a verified domain.1. Add Your Domain
Go to Email Domains in the dashboard and add your domain (e.g.,yourcompany.com).
2. Configure DNS
Add the DKIM records provided by Zavu to your DNS:3. Verify Domain
Zavu automatically checks your DNS records every 5 minutes. Once verified, your domain status will change toverified.
4. Assign to Sender
Assign the verified domain to a sender and configure your from address:- From address:
noreply@yourcompany.com - Reply-To address:
support@yourcompany.com(optional)
Delivery Status
Check message status by ID:Common Errors
Email vs SMS/WhatsApp
Best Practices
- Always include plain text - Some email clients only show plain text
- Use a verified domain - Improves deliverability and avoids spam filters
- Set Reply-To - Make it easy for recipients to respond
- Keep subjects clear - Descriptive subjects improve open rates
- Test before sending - Preview HTML emails in multiple clients
- Respect unsubscribes - Honor opt-out requests promptly
Compliance
Requirements
- Consent: Have permission before sending marketing emails
- Unsubscribe: Include a working unsubscribe link
- Sender identification: Clearly identify your business
- Physical address: Include your business address (for marketing emails)
- Honest subject lines: Don’t use deceptive subject lines
