bricks-ts-email-sender-mailgun-ts
v0.1.1
Published
Bricks TS > Email Sender > mailgun.ts adapter
Downloads
9
Readme
Bricks TS > Email Sender > mailgun.ts adapter
Adapter for Bricks TS email sender interface for mailgun.ts
// instantiate service
const emailSender = MailgunTsSenderService.init({
NodeMailgun: {
apiKey: '',
domain: 'demo.com',
fromEmail: '[email protected]',
}
});
// send email
await emailSender.send({
to: '[email protected]',
subject: 'DEMO email',
text: 'DEMO email text',
html: '<p>DEMO email text</p>',
});