fix from email
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elizabeth Hunt 2024-05-01 01:21:34 -07:00
parent e4bc47579c
commit 7b785f99cd
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE

View File

@ -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)
);