How to send form content by e-mail (without using a database)

In this 'how to' tutorial you will learn how to use the MX Kollection 3 features in order to validate and send data submitted in a form by e-mail, without storing it in a database.

The products you will use in order to complete this tutorial are:

 

Although a database table is not required to accomplish the goals of this tutorial, you must define a database connection within your site. This is not used to store data, but to allow the recovery of submitted form data when an error occurs. Absolutely no data will be stored in the database, so you can choose which one is more convenient (e.g. one of the previous tutorials). Simply create a database connection as done for other tutorials.

For this tutorial you will only create two files:

The files can be found in the \tutorials\_HOW_TO\Send form contents by e-mail\ folder.

To begin creating the site, simply unzip the existing structure in your site root. Open the index file and create a database connection to one of your databases.

Move on and learn how to create the form, add validation to its fields and send the submitted data by e-mail in 10 minutes.