npm.io
1.3.0 • Published 2 years ago

kva-email-service

Licence
MIT
Version
1.3.0
Deps
5
Size
4 kB
Vulns
8
Weekly
0
Stars
1

Email Service

Installation

Use the package manager [npm] to install email service.

npm install email-service --save

Usage

const mailer = emailTransport(
                host,
                port,
                secure,
                auth
              );
const mailHtmlTemplate = magicEmailTemplate();
mailer.sendMail(mailHtmlTemplate, (error) => {
  if (error) {
    console.log(`error sending email: ${error}`);
  }
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords