“Perfect Contact Us Form” Documentation by “Forest Of Code” v1.0
Getting Started
An overview of perfect contact us form, how to use it.
For Php Mail Function
- Copy and paste the files to your project.
- Open asset/js/perfect-contact-form.js and find http://example.com/perfect-contact-form/contact.php.
- Remove this url "http://example.com/perfect-contact-form/contact.php" and put the location of contact.php.
- Open contact.php and find example@gmail.com in the simpleContact function.
- Remove this address "Name " and put your email id with name.
- Open the form.php in browser that's all.
For SMTP Mail (PhpMailer) Function
- Copy and paste the files to your project.
- Open asset/js/perfect-contact-form.js and find http://example.com/perfect-contact-form/contact.php.
- Remove this url "http://example.com/perfect-contact-form/contact.php" and put the location of contact.php.
- Open contact.php and find smtpContact function.
- Provide your mail server and email address credentials.
$mail->Host('mail.example.com')
$mail->Port = 25; OR Your PORT
$mail->Username('YourEmailAddress@Example.com')
$mail->Password = "Your Password";
$mail->addAddress('OwnerEmail@example.com','Owner Name')
- Remove this email address "OwnerEmail@example.com" and "Owner Name" from
$mail->addAddress('OwnerEmail@example.com','Owner Name')
and put your email id with name.
- Open the form.php and find simple_mail
- Remove value simple_mail and add smtp_mail
- Open the form.php in browser that's all.
If you want to know the structure or customize it then please check the detail in index.html