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

@breadstone/archipel-platform-mailing

Classes

ClassDescription
BlobTemplateFetchStrategyThe BlobTemplateFetchStrategy class.
DeliveryStrategyBaseRepresents the base class for all email delivery strategies.
FileTemplateFetchStrategyThe FileTemplateFetchStrategy class.
LogDeliveryStrategyThe LogDeliveryStrategy class.
MailgunDeliveryStrategyDelivers emails via the Mailgun API.
MailHealthIndicatorHealth indicator for mail service.
MailModuleRepresents the mail module.
MailServiceRepresents the MailService class.
MailTemplateEngineThe MailTemplateEngine class.
MailVerificationServiceRepresents the MailVerificationService class.
PostmarkDeliveryStrategyThe PostmarkDeliveryStrategy class.
ResendDeliveryStrategyDelivers emails via the Resend API.
SendGridDeliveryStrategyDelivers emails via the SendGrid API.
SmtpDeliveryStrategyThe SmtpDeliveryStrategy class.
TemplateFetchStrategyBaseRepresents the base class for template fetch strategies.

Interfaces

InterfaceDescription
IMailEventsRepresents the contract of events emitted by the mail domain.
IMailTemplateVariantsRepresents the in-memory structure for a single template (multiple formats).

Type Aliases

Type AliasDescription
MailTemplateFormatUnion type of all supported template formats.

Variables

VariableDescription
MAIL_DELIVERY_STRATEGYWhich delivery strategy to use (e.g. smtp, postmark, resend, sendgrid, mailgun, log).
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_STRATEGYWhich template-fetch strategy to use (e.g. file, blob).
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).
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.

Released under the MIT License.