A simple service for capturing submitted forms via email.
Superstatic Forms is configured by providing a JSON object with keys
named for a specific form and values as described below. For example,
superstatic.json might have a section like this:
This would allow a form with method
POST and action
to submit a contact email, and action
/__/forms/beta to submit a beta
signup email. For example:
text fields are all rendered using Handlebars. If you don't supply
text a simple list of the submitted form information will be added automatically.
Note: To prevent spam and other abuse, the
to address is only configurable in
superstatic.json. It is not templatable.
You must provide server-side global configuration so that Superstatic Forms is able to send email. This service uses nodemailer in the background, so configuration is based on that.
from: "email@example.com"transport: 'SMTP'options:// ...;