Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3396292
D4291.id13561.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4291.id13561.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4291: [keyserver] Use SMTP (via Postmark) instead of `sendmail` for email subscriptions
Attached
Detach File
Event Timeline
Log In to Comment