DocPad plugin to handle form submissions and mail out their content.
A simple DocPad plugin which extends the server to handle posts to a configurable url and deliver it's contents to email addresses with a configurable smtp account. The typical usage scenario is adding a contact form to your DocPad site.
npm install --save docpad-plugin-formmail
Configure the path to be intercepted on your server and the email details for sending out form data in the DocPad configuration file:
plugins:formmail:path: '/contact'transport:service: 'Gmail'auth:user: 'firstname.lastname@example.org'pass: 'password'to: 'email@example.com'
pathproperty should match the POST action on your site's form.
toproperty may be a list of destination email addresses for sending form submissions.
transportproperty configures an SMTP transport instance using nodemailer
You can discover the history inside the