Integration & APIsDecision memoUpdated 2026-02-20

Resilient Email Infrastructure

Asynchronous, queue-based transactional email delivery with rich customizable Scriban templating.

Buyer-readyFounder-grade detailCommercial

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

Email Delivery Pipeline
Business Event
Resolve Template
Scriban Render
Channel Queue
SMTP / SendGrid
Failed
Retry on Failure

Agnostic Transport Providers

ProviderConfigurationUse Case
SMTPHost, port, credentialsSelf-hosted, on-premise
SendGridAPI keyCloud, high-volume delivery
MailgunAPI key + domainDeveloper-friendly API
Amazon SESAccess key + regionAWS infrastructure
CustomImplement IEmailSenderAny 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.

FeatureDescription
Scriban engineFull Liquid-compatible templating with loops, conditions, filters
BilingualArabic and English templates with automatic language detection
Placeholder validationSchema-validated variables prevent runtime template errors
Live previewWYSIWYG editor with real-time rendering in the admin panel
Version historyTrack 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

Email ConfigurationJSON
{
  "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]
    }
  }
}