UNPKG

cloudflare-email-mailchannels

Version:

Send emails via Mailchannels on Cloudflare Workers.

13 lines (10 loc) 509 B
import { MIMEMessage } from 'mimetext/browser'; declare function set_default_dryrun(dryrun: boolean): void; /** * Sends an email message using the MailChannels API. * @param message The {@link MIMEMessage} to send. * @param dry Whether to dry-run the request. Defaults to false. * @throws An error if there are no recipients or sender found, or if the API request fails. */ declare function mailchannels(message: MIMEMessage, dry?: boolean): Promise<void>; export { mailchannels, set_default_dryrun };