From 308d07785f811ff470d0e90b11680926a823027b Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sun, 29 May 2022 17:45:54 +0100 Subject: add change password option --- configs/sendMail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs/sendMail.js') diff --git a/configs/sendMail.js b/configs/sendMail.js index 6405607..c026f0c 100644 --- a/configs/sendMail.js +++ b/configs/sendMail.js @@ -1,6 +1,6 @@ import nodemailer from 'nodemailer' -const sendMail = (to, subject, text, html) => { +const sendMail = ({to, subject, text, html}) => { const transporter = nodemailer.createTransport({ port: 465, host: process.env.MYAPPS_MAIL_SMTP_SERVER, -- cgit v1.2.3