Page MenuHomePhabricator

D4291.id13561.diff
No OneTemporary

D4291.id13561.diff

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,15 @@
...
};
-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,
+ },
+ requireTLS: true,
+});
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,

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 11:37 AM (17 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607445
Default Alt Text
D4291.id13561.diff (1 KB)

Event Timeline