reformulate 0.2.0

reformulate is a standalone server that listens for web form data submissions.
reformulate-0.2.0 is not a library.

ReFormulate

A backend server application that listens for web form submissions, implemented with the actix-web framework.

reformulate is currently capable of using the host server's (or container's) built-in sendmail functionality to send email, after successfully receiving form data.

It accepts the following parameters, most of which are required:

  • email: The email address of the form sender. This will be set as the 'Reply-To' address in the sent email.
  • full_name: The name the form sender would like to use in the sent email. This will be used as the email sender name. Can also be submitted as fullname, or fullName.
  • subject: (optional) The title of the email. A default subject will be used if this is not provided.
  • message: The message body of the sent email
  • from_site: The URL of the site which the form is submitted from. Can also be submitted as site, website, or location. Alternatively, for url-encoded form submissions, this can be set to the URL of the page the user should be redirected to if the form was submitted successfully.

After processing form submissions it responds with a message containing appropriate HTTP status codes, indicating success or failure.

A Dockerfile is included in the source repository to aid in containerized deployments.