Skip to content

Commit

Permalink
fix: mail fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-ivanovvv committed Jul 25, 2024
1 parent 4f6b9a0 commit 9a58499
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion globals/mail/src/get-transporter.mail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions globals/mail/src/templates/send-invite.email-template.ts
Original file line number Diff line number Diff line change
@@ -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(', ')
Expand Down

0 comments on commit 9a58499

Please sign in to comment.