bricks-ts-email-sender-mailgun-ts

0.1.1 • Public • Published

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: 'noreply@demo.com',
  }
});

// send email
await emailSender.send({
  to: 'to@email.com',
  subject: 'DEMO email',
  text: 'DEMO email text',
  html: '<p>DEMO email text</p>',
});

Readme

Keywords

none

Package Sidebar

Install

npm i bricks-ts-email-sender-mailgun-ts

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

8 kB

Total Files

7

Last publish

Collaborators

  • urvalla