title: Unable to load the "PHP Email Form" Library
body: <p>For some reason, my PHP Form doesn't work, when someone presses send message button this error pops out &quot;Unable to load the &quot;PHP Email Form&quot; Library&quot;. I don't know what the problem is.</p>
  <p>This is contact.php</p>
  <pre><code>&lt;?php
  
      $receiving_email_address = 'myemailadress';
      
        if( file_exists($php_email_form = '../assets/vendor/php-email-form/php-email-form.php' )) {
          include( $php_email_form );
        } else {
          die( 'Coming Soon!');
        }
      
        $contact = new PHP_Email_Form;
        $contact-&gt;ajax = true;
        
        $contact-&gt;to = $receiving_email_address;
        $contact-&gt;from_name = $_POST['name'];
        $contact-&gt;from_email = $_POST['email'];
        $contact-&gt;subject = $_POST['subject'];
      
        // Uncomment below code if you want to use SMTP to send emails. You need to enter your correct SMTP credentials
        /*
        $contact-&gt;smtp = array(
          'host' =&gt; 'example.com',
          'username' =&gt; 'example',
          'password' =&gt; 'pass',
          'port' =&gt; '587'
        );
        */
      
        $contact-&gt;add_message( $_POST['name'], 'From');
        $contact-&gt;add_message( $_POST['email'], 'Email');
        $contact-&gt;add_message( $_POST['message'], 'Message', 10);
      
        echo $contact-&gt;send();
      ?&gt;
  </code></pre>
  <p>This is index.html</p>
  <pre><code> &lt;div class=&quot;form&quot;&gt;
                &lt;form action=&quot;forms/contact.php&quot; method=&quot;post&quot; role=&quot;form&quot; class=&quot;php-email-form&quot;&gt;
                  &lt;div class=&quot;row&quot;&gt;
                    &lt;div class=&quot;form-group col-md-6&quot;&gt;
                      &lt;input type=&quot;text&quot; name=&quot;name&quot; class=&quot;form-control&quot; id=&quot;name&quot; placeholder=&quot;Your Name&quot; required&gt;
                    &lt;/div&gt;
                    &lt;div class=&quot;form-group col-md-6 mt-3 mt-md-0&quot;&gt;
                      &lt;input type=&quot;email&quot; class=&quot;form-control&quot; name=&quot;email&quot; id=&quot;email&quot; placeholder=&quot;Your Email&quot; required&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;form-group mt-3&quot;&gt;
                    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;subject&quot; id=&quot;subject&quot; placeholder=&quot;Subject&quot; required&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;form-group mt-3&quot;&gt;
                    &lt;textarea class=&quot;form-control&quot; name=&quot;message&quot; rows=&quot;5&quot; placeholder=&quot;Message&quot; required&gt;&lt;/textarea&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;my-3&quot;&gt;
                    &lt;div class=&quot;loading&quot;&gt;Loading&lt;/div&gt;
                    &lt;div class=&quot;error-message&quot;&gt;&lt;/div&gt;
                    &lt;div class=&quot;sent-message&quot;&gt;Your message has been sent. Thank you!&lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;text-center&quot;&gt;&lt;button type=&quot;submit&quot;&gt;Send Message&lt;/button&gt;&lt;/div&gt;
                &lt;/form&gt;
              &lt;/div&gt;
  </code></pre>
  <p>Anf for some reason some kind of a error log file came up in the folder that says:</p>
  <pre><code>[19-Nov-2021 13:49:31 UTC] PHP Fatal error:  Uncaught Error: Class 'PHP_Email_Form' not found in /home/domain/public_html/forms/contact.php:16
  Stack trace:
  #0 {main}
    thrown in /home/domain/public_html/forms/contact.php on line 16
  [19-Nov-2021 13:49:32 UTC] PHP Fatal error:  Uncaught Error: Class 'PHP_Email_Form' not found in /home/domain/public_html/forms/contact.php:16
  Stack trace:
  #0 {main}
    thrown in /home/domain/public_html/forms/contact.php on line 16
  </code></pre>
  <p>I guess I should add this home/domain/public.html/froms/contact.php on line 16 but I don't know how to do that properly apparently.</p>