Created
January 2, 2019 10:30
-
-
Save Saifadin/be8c3a9c8ef733e97b11092ba8629530 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
import { renderEmail } from 'postonents'; | |
import EmailContainer from '@company/email-templates'; | |
// EmailContainer is the entry point for the service and it gets the data passed to it | |
const html = await renderEmail(EmailContainer, { lang: lang.toLowerCase(), template, emailData: data }); | |
// generic send function | |
sendEmail(html); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment