0.1.1 • Published 2 years ago

bricks-ts-email-sender-mailgun-ts v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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>',
});