Created
April 21, 2019 17:37
-
-
Save iskenxan/950b3f7c16b7681e0c7300ed7436cde5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mailgun = require('mailgun-js')({ | |
apiKey: api_key, | |
domain: domain | |
}); | |
const EmailStrategy = { | |
send: function(receiptHtml, userEmail) { | |
const emailBody = getEmailBody(receiptHtml, userEmail); | |
mailgun.messages().send(emailBody, function (error, body) { | |
console.log(body); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment