“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

  1. Copy and paste the files to your project.
  2. Open asset/js/perfect-contact-form.js and find http://example.com/perfect-contact-form/contact.php.
  3. Remove this url "http://example.com/perfect-contact-form/contact.php" and put the location of contact.php.
  4. Open contact.php and find example@gmail.com in the simpleContact function.
  5. Remove this address "Name " and put your email id with name.
  6. Open the form.php in browser that's all.

For SMTP Mail (PhpMailer) Function

  1. Copy and paste the files to your project.
  2. Open asset/js/perfect-contact-form.js and find http://example.com/perfect-contact-form/contact.php.
  3. Remove this url "http://example.com/perfect-contact-form/contact.php" and put the location of contact.php.
  4. Open contact.php and find smtpContact function.
  5. 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')
  6. 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.
  7. Open the form.php and find simple_mail
  8. Remove value simple_mail and add smtp_mail
  9. 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