Super Ajax Contact Form

Including into your website

There are two ways to include the form on your site.

First way

You can include using php. Open the file you want to include the form. Be sure that it is in the same folder as "assets" and has the extension ".php". Between the head tags ( ), write this:

And write this where you want that the form stay:

Second way

You can copy the content of "assets/php/parts/header.html" file and to paste between head ( ) tags of your website. Do the same thing with the "assets/php/parts/body.html" file, but paste between body tags ( ) (or where you want that the form stay).

Configuration

The contact form is easily of configure. There is only one thing you should do. The others are optional. Open the "assets/xml/config.php" file. To add a default email, just replace "put@your.email.here" for your real email, example:

This is the only thing you have to set to the form works.

Configuring SMTP options

The Super Ajax Contact Form is able open connections smtp too. If you don't have a SMTP server, then you may want to use the Live or Gmail for example. See two examples of how configure the SMTP. In the file "assets/xml/config.php", find the tag "smtp". Here there, we have all smtp options of the system

For a better understanding, see this example in which I connect to the SMTP server Gmail.

Now, for Gmail

"use:" yes
"auth:" yes
"secure:" tls
"host:" smtp.gmail.com
"username:" smtp.gmail.com
"password:" 1234123
"port:" 587

As you saw, is very easy to set up the contact form :)

Finishing

Now, just upload the form for your server and use it!