1.0.16 • Published 2 years ago

flowmailer v1.0.16

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

Flowmailer

Typescript ready NPM package for Flowmailer API interaction.

Step #1

Create an instance

const mailer = new Flowmailer({
  clientId: '<your-flowmailer-client-id>',
  clientSecret: '<your-flowmailer-client-secret>',
  transport: {
    host: 'smtp.flowmailer.net',
    auth: {
      user: '<your-flowmailer-smtp-user>',
      pass: '<your-flowmailer-smtp-pass>',
    },
  },
});

Step #2

Send emails

mailer.sendEmail({
  // custom flowmailer props
  flowmailer: {
    templateId: <your-template-id>,

    // template data keys get replaced with values
    templateData: {
      prop1: 'value-1',
      prop2: 'value-2',
    },
  },

  // normal nodemailer props
  from: '"Fred Foo 👻" <.....@gmail.com>',
  to: '.....@gmail.com',
  subject: 'Hello ✔',
});
1.0.16

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago