We have a website which is mostly HTML pages, in other words, not CMS based. The way we handle fill-in forms is through an ancient script that comes with the web hosting. It requires a separate text file to be created for each form which contains a template for the email that gets sent when the form is filled in. I wonder if there's a better way.
Can you give me examples of widely used script that I could hook into the form to send these emails? The features I'm looking for are:
- No separate file for configuring the email - so destination email, and other info that needs to go in the email are in the form itself, maybe hidden fields.
- Multiple email addresses can receive the form.
These features would be nice:
- Simple conditional processing - send email to A if field X is Y, send email to B if field X is Z.
- Logging of form submission for debug purposes.