Send transactional email from manifold.markets

This commit is contained in:
jahooma 2022-01-06 18:33:19 -06:00
parent bcd86ddce9
commit 4390ee4314

View File

@ -1,12 +1,12 @@
import * as mailgun from 'mailgun-js' import * as mailgun from 'mailgun-js'
import * as functions from 'firebase-functions' import * as functions from 'firebase-functions'
const DOMAIN = 'mg.mantic.markets' const DOMAIN = 'mg.manifold.markets'
const mg = mailgun({ apiKey: functions.config().mailgun.key, domain: DOMAIN }) const mg = mailgun({ apiKey: functions.config().mailgun.key, domain: DOMAIN })
export const sendEmail = (to: string, subject: string, text: string) => { export const sendEmail = (to: string, subject: string, text: string) => {
const data = { const data = {
from: 'Mantic Markets <no-reply@mantic.markets>', from: 'Manifold Markets <no-reply@manifold.markets>',
to, to,
subject, subject,
text, text,