Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Created November 30, 2021 19:21
Show Gist options
  • Save ryanburnette/35e2fe9a8e3bd0ead0fe54aff161df59 to your computer and use it in GitHub Desktop.
Save ryanburnette/35e2fe9a8e3bd0ead0fe54aff161df59 to your computer and use it in GitHub Desktop.
await postmark.sendEmail({
From: 'api@ryanburnette.com',
ReplyTo: `${req.body.xname} <${req.body.xemail}>`,
To: to,
Cc: 'api-submissions@ryanburnette.com',
Subject: `ryanburnette.com api submission to ${req.body.form} from ${req.body.xname}`,
HtmlBody: html,
TextBody: text,
MessageStream: 'outbound',
Headers: [
{ Name: 'Message-ID', Value: record.id + '@ryanburnette.com' },
{ Name: 'X-Entity-Ref-ID', Value: record.id + '@ryanburnette.com' },
{ Name: 'References', Value: record.id + '@ryanburnette.com' }
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment