Skip to content
Studeia Docs

Institutional email: SMTP/Resend/SendGrid, templates, digest

Each tenant configures its own email sender (SMTP, Resend or SendGrid) with branded Handlebars templates in 4 languages, delivery logs, opt-out, daily/weekly digests and send_email automations.

2026-05-31 5 min
Resposta curta

Studeia ships institutional email: each tenant configures its own sender via SMTP, Resend or SendGrid (encrypted credentials), with a Handlebars template engine and a branded layout, 40 default templates across 4 languages, daily/weekly digests, per-user preferences with JWT unsubscribe, delivery logs + webhooks and rate limiting. Email can be sent by automations (the send_email action) and by native events like enrollment; links always use the tenant's own base URL.

Providers & sender

TenantEmailConfig lets each tenant pick SMTP, Resend or SendGrid via a factory pattern, with sender and reply-to per tenant. Credentials are encrypted at rest. Links in emails use the tenant's base URL — https://{customDomain} if verified, else https://{slug}.studeia.com.

Templates

A Handlebars template engine (variables + a branded layout) ships 40 default templates (10 slugs × 4 locales). Templates are editable and previewable in the admin UI.

Delivery, preferences & digest

  • EmailService handles Redis rate limiting, retries and an opt-out check before sending.
  • Preferences per user; unsubscribe via signed JWT (no predictable fallback).
  • DigestService sends daily/weekly summaries.
  • Logs + webhooks record delivery status (EmailLog).

Automations & native events

The send_email automation action sends via this service (template slug or inline subject+HTML, targeting trigger_user, users_with_tag, course_students or a custom address). Native events such as enrollment also fire templated emails.

See also

FAQ

Can each institution send email from its own domain?

Yes. Each tenant configures TenantEmailConfig with one of three providers — SMTP, Resend or SendGrid — including sender and reply-to. Credentials are encrypted at rest, and email links use the tenant's own base URL (custom domain if verified, else slug.studeia.com).

Does Studeia have email templates and digests?

Yes. A Handlebars template engine with a branded layout ships 40 default templates (10 slugs × 4 locales). There's a digest service (daily/weekly), per-user email preferences with JWT unsubscribe, delivery logs and webhooks, and rate limiting. Automations can send email via the send_email action, and native events (e.g., enrollment) trigger templated emails.

Veja tambem

Institutional email: SMTP/Resend/SendGrid, templates, digest