koa-mailer
Koa middleware to send emails.
Usage
const koa = ;const mailer = ;const app = ;app;app;
Documents
const mailer = ;app;
-
options.email
required Object
The auth info to be passed to nodemailer.
-
options.prefix
optional String
The path prefix for routes. Default as
''
. -
options.validate
optional Function (ctx)
A function to decide whether the request should be rejected. The only parameter is the Koa Context.
-
options.handlers
optional Object
A map of routes to handlers. Each handler is a function with the post data as parameter, which should return the email data to be sent.