const EmailHandler = require('@27Works/posto')
const emailConfig = {
apiKey: sendgrid.apiKey,
fromAddress,
fromName,
sendEmail,
templatePath: path.join(process.cwd(), templatePath)
}
const emailHandler = new EmailHandler(emailConfig)
const data = {
to,
cc,
template,
action_url: '/go',
baseUrl: config.get('global.baseUrl'),
membership,
user
}
const emailResponse = await emailHandler.send(data)
const { bcc, cc, from, subject } = emailResponse.originalMessage
-
Notifications
You must be signed in to change notification settings - Fork 0
License
27Works/posto
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published