From 9a58499f69f90aef55b05d0993dab8601d9742c2 Mon Sep 17 00:00:00 2001 From: effectivnayarabota1 Date: Thu, 25 Jul 2024 14:27:56 +0300 Subject: [PATCH] fix: mail fixes --- globals/mail/src/get-transporter.mail.ts | 2 +- globals/mail/src/templates/send-invite.email-template.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/globals/mail/src/get-transporter.mail.ts b/globals/mail/src/get-transporter.mail.ts index eb4fb6c4..ed7f3358 100644 --- a/globals/mail/src/get-transporter.mail.ts +++ b/globals/mail/src/get-transporter.mail.ts @@ -5,7 +5,7 @@ const { SMTP_AUTH_HOST, SMTP_AUTH_PORT, SMTP_AUTH_USER, SMTP_AUTH_PASS } = proce export const transporter = nodemailer.createTransport({ host: SMTP_AUTH_HOST, port: Number(SMTP_AUTH_PORT), - secure: false, // Use `true` for port 465, `false` for all other ports + secure: true, // Use `true` for port 465, `false` for all other ports auth: { user: SMTP_AUTH_USER, pass: SMTP_AUTH_PASS, diff --git a/globals/mail/src/templates/send-invite.email-template.ts b/globals/mail/src/templates/send-invite.email-template.ts index fda506a1..601b34b8 100644 --- a/globals/mail/src/templates/send-invite.email-template.ts +++ b/globals/mail/src/templates/send-invite.email-template.ts @@ -1,9 +1,9 @@ import { sendMail } from '../send-mail.mail.js' import { getHtml } from './send-invite.layout-template.js' -const MAIL_TEXT = 'test text' -const MAIL_SUBJECT = 'test subject' -const MAIL_FROM = 'test from' +const MAIL_TEXT = 'atlantis-invite-text' +const MAIL_SUBJECT = 'atlantis-invite-subject' +const MAIL_FROM = process.env.SMTP_AUTH_USER export const sendInviteMail = ({ emails, selectedInvites }) => { const emailsString = emails.join(', ')