2.0.2 • Published 11 years ago

docpad-plugin-formmail v2.0.2

Weekly downloads
11
License
-
Repository
github
Last release
11 years ago

FormMail Plugin for DocPad

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.

Install

npm install --save docpad-plugin-formmail

Usage

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:
		formmail:
			path: '/contact'
			transport: {
				service: 'Gmail',
				auth: {
					user: 'noreply@example.com',
					pass: 'password'
				}
			}
			to: 'enquiries@example.com'

Where:

  • the path property should match the POST action on your site's form.
  • the to property may be a list of destination email addresses for sending form submissions.
  • the transport property configures an SMTP transport instance using nodemailer

History

You can discover the history inside the History.md file

License

Licensed under the incredibly permissive MIT License Copyright © 2013+ Sparks Creative Limited

2.0.2

11 years ago

2.0.1

11 years ago

2.0.0

11 years ago