await emails.sendMail({
to: supportEmail,
replyTo: customerEmail,
subject: `Unanswered question on ${shopName}`,
// Pass your custom template
// The default template is an EJS string
html: DefaultEmailTemplates.renderEmailTemplate(CustomTemplate, {
shopName: shopName,
transcript: formattedTranscript,
}),
});
await emails.sendMail({
to: supportEmail,
replyTo: customerEmail,
subject: `Unanswered question on ${shopName}`,
// Pass your custom template
// The default template is an EJS string
html: DefaultEmailTemplates.renderEmailTemplate(CustomTemplate, {
shopName: shopName,
transcript: formattedTranscript,
}),
});