Factory creating mail transport instances for AWS SES, Resend, SMTP, or null.
// Source: https://github.com/triggerdotdev/trigger.dev | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { ReactElement } from "react";
import type { AwsSesMailTransportOptions } from "./aws-ses";
import { AwsSesMailTransport } from "./aws-ses";
import type { NullMailTransportOptions } from "./null";
import { NullMailTransport } from "./null";
import type { ResendMailTransportOptions } from "./resend";
import { ResendMailTransport } from "./resend";
import type { SmtpMailTransportOptions } from "./smtp";
import { SmtpMailTransport } from "./smtp";
export type MailMessage = {
to: string;
from: string;
replyTo: string;
subject: string;
react: ReactElement;
};
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key