From bf8b99a0d12ca94d2f7d577ff8646b962c9eb206 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 14 Feb 2022 20:55:20 +0000 Subject: [PATCH] Send a password reset email --- lib/Emailer.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/Emailer.js b/lib/Emailer.js index fa6f521..0512d80 100644 --- a/lib/Emailer.js +++ b/lib/Emailer.js @@ -266,12 +266,9 @@ class Emailer { if (typeof this.#transporter === 'undefined') await this.getTransporter(); - console.log(`Sending`); - console.log(email); - console.log(this.#host, - this.#user, - this.#password, - this.#secure); + const message = email.getMessageObject(); + + this.#transporter.sendMail(message); } /**