Resilient Email Infrastructure
Asynchronous, queue-based transactional email delivery with rich customizable Scriban templating.
Transactional communications must never block an API request. SCRIPE includes an outbox-pattern, queue-based dispatch system leveraging background worker processes to guarantee hyper-fast, reliable email delivery via standard SMTP or direct REST APIs like SendGrid and Mailgun.
The Transactional Pipeline
Agnostic Transport Providers
| Provider | Configuration | Use Case |
|---|---|---|
| SMTP | Host, port, credentials | Self-hosted, on-premise |
| SendGrid | API key | Cloud, high-volume delivery |
| Mailgun | API key + domain | Developer-friendly API |
| Amazon SES | Access key + region | AWS infrastructure |
| Custom | Implement IEmailSender | Any provider via adapter |
Intelligent Scriban Templating
Write logic immediately inside your email layouts. Using the blazing-fast Scriban templating language, you can execute conditional blocks, iterate over items, and perfectly format dates without leaking business logic into your application layer.
| Feature | Description |
|---|---|
| Scriban engine | Full Liquid-compatible templating with loops, conditions, filters |
| Bilingual | Arabic and English templates with automatic language detection |
| Placeholder validation | Schema-validated variables prevent runtime template errors |
| Live preview | WYSIWYG editor with real-time rendering in the admin panel |
| Version history | Track template changes with rollback capability |
Enterprise Delivery Features
Background Dispatches
APIs respond strictly under 50ms, while heavy string manipulations and external network calls are delegated to persistent background services.
Bilingual Template Routing
Automatically detect tenant locales and dispatch deeply personalized HTML emails in Arabic (RTL) or English (LTR) from strictly categorized templates.
Exponential Backoff
Gracefully handle temporary network partitions or rate-limits from external providers with built-in, configurable resilient retry policies.
Audit & Delivery Tracking
Record the dispatch ID, exact timestamp, and provider response for every single email sent, creating an undeniable audit trail.
Dynamic SMTP Configurations
{
"EmailSettings": {
"Provider": "smtp",
"FromEmail": "no-reply@scripe.com",
"FromName": "SCRIPE Platform",
"Smtp": {
"Host": "smtp.office365.com",
"Port": 587,
"EnableSsl": true
},
"RetryPolicy": {
"MaxRetries": 3,
"BackoffSeconds": [30, 120, 600]
}
}
}