respondence
A simple hapijs plugin for sending e-mails. Uses nodemailer.
Usage
const Respondence = ;const server = ; await server;
Sending email
const mail = from: '"Baroof" <baroof@gmail.com>' to: 'foobar@gmail.com' subject: 'Foo' text: 'A bar without foo is barfoo.' try await serverpluginsrespondence;catcherr console;
Verifying SMTP connection
try await serverpluginsrespondence;catcherr console;
Registering with a transport plugin
const Mailgun = ; await server;
See more transport plugins here and nodemailer for more information.
Contributing
- Include 100% test coverage.
- Follow the Hapi coding conventions
- Submit an issue first for significant changes.