diff --git a/keyserver/src/emails/sendmail.js b/keyserver/src/emails/sendmail.js --- a/keyserver/src/emails/sendmail.js +++ b/keyserver/src/emails/sendmail.js @@ -2,6 +2,8 @@ import nodemailer from 'nodemailer'; +import postmark from '../../facts/postmark.json'; + type MailInfo = { +from: string, +to: string, @@ -14,6 +16,14 @@ ... }; -const sendmail: Transport = nodemailer.createTransport({ sendmail: true }); +const sendmail: Transport = nodemailer.createTransport({ + host: 'smtp.postmarkapp.com', + port: 587, + secure: false, + auth: { + user: postmark.apiToken, + pass: postmark.apiToken, + }, +}); export default sendmail; diff --git a/keyserver/src/emails/subscribe-email-updates.js b/keyserver/src/emails/subscribe-email-updates.js --- a/keyserver/src/emails/subscribe-email-updates.js +++ b/keyserver/src/emails/subscribe-email-updates.js @@ -23,7 +23,7 @@ const html = renderEmail(email); await sendmail.sendMail({ - from: 'no-reply@squadcal.org', + from: 'no-reply@comm.app', to: ashoat.landing_email, subject: title, html,