Created
January 2, 2019 10:30
-
-
Save Saifadin/be8c3a9c8ef733e97b11092ba8629530 to your computer and use it in GitHub Desktop.
Revisions
-
Saifadin created this gist
Jan 2, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ 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);