Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\copia nuevo\htdocs\BLA\admin\carpetas\assets\ drwxrwxrwx |
Viewing file: help.html (5.56 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | Help fileIncluding into your websiteThere are two ways to include the form on your site. First wayYou 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'); ?> Second wayYou 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). ConfigurationThe 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: <address>put@your.email.here</address> 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>default@email.com</address> <address on="subject" value="Support"> support@yoursite.com </address> <address on="subject" value="Sales"> sales@yoursite.com </address> <address on="subject" value="Other"> other@yoursite.com </address> You can change the charset too. Just change the value of the tag "charset". Configuring SMTP optionsThe 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>example@hotmail.com</username> <password>1234123</password> <port>25</port> </smtp> Now, for Gmail<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 :) FinishingNow, just upload the form for your server and use it! |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0468 ]-- |