From 7b785f99cd74819c0f8817b94c3d7f0d0ec15cb3 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 1 May 2024 01:21:34 -0700 Subject: [PATCH] fix from email --- src/routes/contact/submit.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/routes/contact/submit.js b/src/routes/contact/submit.js index 0befd0e..3914997 100644 --- a/src/routes/contact/submit.js +++ b/src/routes/contact/submit.js @@ -3,8 +3,7 @@ import * as nodemailer from 'nodemailer'; import { continueRetryUntilValidation } from '$lib/utils'; class MistyMountainsMailer { - constructor(username, password, from, domain, port) { - this.from = from; + constructor(username, password, domain, port) { this.username = username; this.password = password; this.domain = domain; @@ -26,7 +25,6 @@ class MistyMountainsMailer { async sendMail(to, subject, message) { const mail = { - from: this.from, subject, html: message, to @@ -45,7 +43,6 @@ export async function post({ request }) { const mailer = new MistyMountainsMailer( process.env.SMTP_USERNAME, process.env.SMTP_PASSWORD, - process.env.FROM_EMAIL, process.env.SMTP_SERVER, Number(process.env.SMTP_PORT) );