From 07d28c1979687a7cd92508da752de5ebd45222c4 Mon Sep 17 00:00:00 2001 From: ash Date: Sun, 26 Feb 2023 21:20:50 +0000 Subject: [PATCH] feat: send mail from config-definable email --- src/mailer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mailer.js b/src/mailer.js index b4e5ce87..7292f6ef 100644 --- a/src/mailer.js +++ b/src/mailer.js @@ -13,7 +13,7 @@ if (!disabledFeatures.email) { /** @param {Object} options - @param {String} options.to The address to send the email to + @param {String} options.to The address of the recipient @param {String} options.subject The subject of the email @param {String} options.username The username of the user (shown in the greeting) @@ -51,6 +51,7 @@ async function sendMail(options) { } await transporter.sendMail({ + from: config.email.from, to, subject, text,