docpad-plugin-contactify
v2.0.11
Published
DocPad plugin to create, send and customize a contact form.
Downloads
10
Readme
Contactify Plugin for DocPad
A fully customizable DocPad contact form plugin.
Install
npm install --save docpad-plugin-contactify
Or add it to your package.json file
Usage (more coming soon)
Setup
Configure the path to be intercepted on your server and the email details for sending out form data in the DocPad configuration file:
plugins:
contactify:
path: '/contact-form'
transport: {
service: 'Gmail',
auth: {
user: '[email protected]',
pass: 'password'
}
}
redirect: '/'
to: '[email protected]'
path: should match the POST action on your site's form. transport: configures an SMTP transport instance using nodemailer redirect: options that will be overwritten by the hidden input called redirect in your form (if it exists) to: may be a list of destination email addresses for sending form submissions
License
Licensed under the incredibly permissive MIT License Copyright © 2013+ thaume