diff --git a/src/send.ts b/src/send.ts index 316215b..fbb829a 100644 --- a/src/send.ts +++ b/src/send.ts @@ -1,8 +1,11 @@ +import type SendmailTransport from 'npm:@types/nodemailer' import type { Mail } from '../types.ts' import { renderTemplate } from './template.tsx' import { transporter } from './transporter.ts' -export async function send(mail: Mail) { +export async function send( + mail: Mail, +): Promise { const { html, text } = await renderTemplate(mail.body) return (await transporter()).sendMail({