Skip to content
@archipel/platform-mailing Auto-generated

@breadstone/archipel-platform-mailing

Classes

ClassDescription
BlobTemplateFetchStrategyThe BlobTemplateFetchStrategy class.
DatabaseTemplateFetchStrategyTemplate fetch strategy that loads templates from a database via the IMailTemplateRepository port.
DeliveryStrategyBaseRepresents the base class for all email delivery strategies.
FileTemplateFetchStrategyThe FileTemplateFetchStrategy class.
MailDeliveryErrorDomain error thrown when email delivery fails.
MailgunDeliveryStrategyDelivers emails via the Mailgun API.
MailHealthIndicatorHealth indicator for mail service.
MailModuleRepresents the mail module.
MailServiceRepresents the MailService class.
MailTemplateEngineThe MailTemplateEngine class.
MailVerificationService-
PostmarkDeliveryStrategyThe PostmarkDeliveryStrategy class.
ResendDeliveryStrategyDelivers emails via the Resend API.
SendGridDeliveryStrategyDelivers emails via the SendGrid API.
SmtpConnectionVerifierVerifies SMTP server connectivity. Does not validate individual email addresses — only checks whether the configured SMTP transport is reachable.
SmtpDeliveryStrategyThe SmtpDeliveryStrategy class.
TemplateFetchStrategyBaseRepresents the base class for template fetch strategies.

Interfaces

InterfaceDescription
IMailAttachmentRepresents an email attachment.
IMailEventsRepresents the contract of events emitted by the mail domain.
IMailModuleOptionsOptions for configuring the MailModule.
IMailTemplateRepresents a single mail template record stored in a persistent store.
IMailTemplateRepositoryPort interface for mail template persistence.
IMailTemplateVariantsRepresents the in-memory structure for a single template (multiple formats).

Type Aliases

Type AliasDescription
MailTemplateFormatUnion type of all supported template formats.

Variables

VariableDescription
ALLOWED_ATTACHMENT_MIME_TYPESAllowed MIME types for email attachments.
MAIL_DELIVERY_STRATEGY_TOKEN-
MAIL_HOSTMail host checked by the health indicator.
MAIL_MAILGUN_API_KEYAPI key for the Mailgun delivery service.
MAIL_MAILGUN_DOMAINMailgun domain (e.g. mg.example.com).
MAIL_PORTMail port checked by the health indicator.
MAIL_POSTMARK_API_KEYAPI key for the Postmark delivery service.
MAIL_RESEND_API_KEYAPI key for the Resend delivery service.
MAIL_SENDER_EMAILSender e-mail address shown in the From header.
MAIL_SENDGRID_API_KEYAPI key for the SendGrid delivery service.
MAIL_SMTP_HOSTSMTP server host.
MAIL_SMTP_PASSWORDSMTP authentication password.
MAIL_SMTP_PORTSMTP server port.
MAIL_SMTP_SECUREWhether the SMTP connection uses TLS.
MAIL_SMTP_USERSMTP authentication username.
MAIL_TEMPLATE_ENGINE_FORMATTemplate engine format identifier (e.g. handlebars).
MAIL_TEMPLATE_FETCH_STRATEGY_TOKENCentral definition of injection tokens used by the mail module. Using constants instead of raw string literals prevents accidental typos and enables refactors with compile time safety.
MAIL_TEMPLATE_NAMES_TOKEN-
MAIL_TEMPLATE_REPOSITORY_TOKEN-
MAIL_USERMail user checked by the health indicator.
MAILGUN_API_KEYAPI key for the Mailgun delivery service.
MAILGUN_CONFIG_ENTRIESConfiguration entries required by the Mailgun delivery provider.
MAILGUN_DOMAINMailgun domain (e.g. mg.example.com).
MAX_ATTACHMENT_SIZE_BYTESMaximum attachment size in bytes (25 MB).
PLATFORM_MAILING_CONFIG_ENTRIESAll configuration entries required by platform-mailing.
POSTMARK_API_KEYAPI key for the Postmark delivery service.
POSTMARK_CONFIG_ENTRIESConfiguration entries required by the Postmark delivery provider.
RESEND_API_KEYAPI key for the Resend delivery service.
RESEND_CONFIG_ENTRIESConfiguration entries required by the Resend delivery provider.
SEND_MAIL_EVENT_KEYEvent key registry for the mail domain events.
SENDGRID_API_KEYAPI key for the SendGrid delivery service.
SENDGRID_CONFIG_ENTRIESConfiguration entries required by the SendGrid delivery provider.
SMTP_CONFIG_ENTRIESConfiguration entries required by the SMTP delivery provider.
SMTP_HOSTSMTP server host.
SMTP_PASSWORDSMTP authentication password.
SMTP_PORTSMTP server port.
SMTP_SECUREWhether the SMTP connection uses TLS.
SMTP_USERSMTP authentication username.

Released under the MIT License.