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(', ')