1.0.16 • Published 3 years ago

flowmailer v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago