DocPad plugin to create, send and customize a contact form.
A fully customizable DocPad contact form plugin.
npm install --save docpad-plugin-contactify
Or add it to your package.json file
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: 'firstname.lastname@example.org'pass: 'password'redirect: '/'to: 'email@example.com'
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