2.0.1 • Published 2 years ago

volante-mailer v2.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
2 years ago

Volante Mailer Spoke

volante module for nodemailer

Provides simple setup of nodemailer through volante framework. All events follow the Volante hub/spoke model and are emitted on the hub.

Usage

npm install volante-mailer

Volante modules are automatically loaded and instanced if they are installed locally and hub.attachAll() is called.

Props

Options are changed using the VolanteMongo.update event with an options object:

hub.emit('VolanteMailer.update', {
  transport: {
    host: "smtpserver",
    port: 587,
    auth: {
      user: "",
      pass: "",
    },
  },
});

The module will automatically start a connection when the props are changed.

Events

Handled

  • VolanteMailer.send - send an email message, needs { from, to, subject, text || html } fields, takes a callback parameter passed directly to nodemailer

License

ISC

2.0.1

2 years ago

2.0.0

2 years ago

1.1.0

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago