There are two ways to include the form on your site.
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 (<head> <head/>), write this:
<?php include ('assets/php/parts/header.html'); ?>
And write this where you want that the form stay:
<?php include ('assets/php/parts/body.html'); ?>
You can copy the content of "assets/php/parts/header.html" file and to paste between head (<head> <head/>) tags of your website. Do the same thing with the "assets/php/parts/body.html" file, but paste between body tags (<body> <body/>) (or where you want that the form stay).
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 "firstname.lastname@example.org" for your real email, example:
This is the only thing you have to set to the form works.
If you want to send the message to a different e-mail depending on the subject that the User chose, just change the settings of the tags below, otherwise leave blank, example:
<address>email@example.com</address> <address on="subject" value="Support"> firstname.lastname@example.org </address> <address on="subject" value="Sales"> email@example.com </address> <address on="subject" value="Other"> firstname.lastname@example.org </address>
You can change the charset too. Just change the value of the tag "charset".
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
Here a explanation of the tags:
use: This tells for the script if you will send the email through of SMTP.
auth: This tells for the script if the SMTP server will use authentication.
secure: This tells for the script how to make the conection with the SMTP server, most servers use "tls".
username: The username of SMTP.
password: The password of SMTP.
port: The port to be used.
For a better understanding, see this example in which I connect to the SMTP server Live.
<smtp> <use>yes</use> <auth>yes</auth> <secure>tls</secure> <host>smtp.live.com</host> <username>email@example.com</username> <password>1234123</password> <port>25</port> </smtp>
<smtp> <use>yes</use> <auth>yes</auth> <secure>tls</secure> <host>smtp.gmail.com</host> <username>smtp.gmail.com</username> <password>1234123</password> <port>587</port> </smtp>
As you saw, is very easy to set up the contact form :)
Now, just upload the form for your server and use it!
Thank you for purchase :)