docpad-plugin-contactify

DocPad plugin to create, send and customize a contact form.

Contactify Plugin for DocPad

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: 'hello@myamazingstartup.com',
                    pass: 'password'
                }
            }
            redirect: '/'
            to: 'me@site.name'

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

Licensed under the incredibly permissive MIT License
Copyright © 2013+ thaume