Best Practices
Field-tested guidance for deploying and operating RME at enterprise scale.
Deliverability
- Authenticate every sending domain with SPF, DKIM, and DMARC before the first production send.
- Separate transactional and marketing traffic onto different subdomains and IP pools.
- Warm new IPs and domains over two to four weeks; never jump to full volume.
- Keep hard bounce rate under 2% and complaint rate under 0.1%.
- Validate addresses at capture, not at send time.
- Re-engage or remove recipients with 12 months of no engagement.
Architecture
- Send asynchronously from triggers — never call out in the same transaction as DML.
- Use templates rather than inline bodies so content is versioned and reviewable.
- Set
Idempotency-Keyon every external send request. - React to outcomes with Platform Events instead of polling status.
- Keep one provider config per environment and per business unit.
- Configure a failover provider for every production provider.
Content
- Write a meaningful subject under 60 characters; front-load the value.
- Always generate a plain-text alternative.
- Inline CSS, absolute image URLs, and descriptive alt text.
- One clear call to action per message.
- Keep SMS inside a single segment when possible and always include an opt-out on marketing traffic.
Governance
- Restrict the Marketing category to a small set of users.
- Require template review before activation.
- Review the audit log monthly for suppression removals and consent overrides.
- Set per-user and per-org send ceilings before go-live.
- Keep
sandboxModeenabled in every non-production org.
Testing
- Refresh sandboxes and re-point provider configs to test credentials immediately after.
- Use
RME_Test.mockProviderin every Apex test; never call a live provider from tests. - Preview every template against real record ids before activation.
- Run a seed-list send before any large campaign.
- Load test bulk paths in a Full sandbox with production-scale data.
Operations
- Dashboard delivery rate, bounce rate, complaint rate, and provider health daily.
- Alert on circuit breaker events and on failure-rate anomalies.
- Rehearse a provider outage: disable the primary and confirm failover.
- Document the runbook for a reputation incident before you need it.
Continue to Troubleshooting.
Was this helpful?
Last updated 1 month ago