ReferenceLibs
Transport-agnostic React Email rendering for services.
API
sendEmail(sender, input) renders a template to HTML and plaintext, then calls the injected sender. An optional from in the input overrides the transport's default sender for that message; it is passed to the sender only when set. The sender's delivery result type is inferred and returned unchanged. A connected smtp-email-connector client is one compatible sender, but this package does not depend on SMTP or any other delivery adapter.
sendEmail(input:SendEmailInput) sends a rendered template through anEmailSender.- Types:
EmailSender,EmailTemplate,SendEmailInput.
Commands
pnpm nx run email:typecheck # type-check the package
pnpm nx run email:test # run the Vitest suite