From e004b5c677ec23e1e5afe521ca7c520547617c74 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Fri, 29 Mar 2024 16:06:20 +0100 Subject: [PATCH] fix: patch mail type refactor --- src/send.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/send.ts b/src/send.ts index 9e28fa5..4e5e0e0 100644 --- a/src/send.ts +++ b/src/send.ts @@ -3,7 +3,7 @@ import { transporter } from './transporter.ts' export function send(mail: Mail) { return transporter.sendMail({ - from: mail.options.from.toString(), + from: mail.from.toString(), to: mail.to.map((contact) => contact.toString()), cc: mail.options.cc.map((cc) => cc.toString()), bcc: mail.options.cci.map((cci) => cci.toString()),