title: PHPMailer autoload.php not able to open
body: <p>I am currently hosting a website on GoDaddy and recently I added a contact form that will send me emails when people fill it out. It works perfectly when I use XAMPP, but once I uploaded the same code onto the GoDaddy servers, it gives me a <code>HTTP ERROR 500</code>. </p>
  
  <p>I am using <code>PHPMailer</code> and Gmail's <code>SMTP</code> service. This is the current code that works with XAMPP: </p>
  
  <pre><code>&lt;?php
  
  require_once "vendor/autoload.php";
  
  
  $name = $_POST["name"];
  $email_from = $_POST["email"];
  $telephone = $_POST["telephone"];
  
  $message = "Name:  ".$name."\r\n".
      "Email:  ".$email_from."\r\n".
      "Telephone:  ".$telephone."\r\n";
  
  $email_to = "myemail@gmail.com";
  
  if(isset($_POST['submit'])){
  
  $mail = new PHPMailer\PHPMailer\PHPMailer;
  
  $mail-&gt;isSMTP();
  $mail-&gt;Host = "smtp.gmail.com";
  $mail-&gt;SMTPAuth = true;
  $mail-&gt;Username = "myemail@gmail.com";
  $mail-&gt;Password = "password";
  $mail-&gt;SMTPSecure = "tls";
  $mail-&gt;Port = 587;
  
  
  $mail-&gt;From = $email_from;
  $mail-&gt;FromName = $name;
  $mail-&gt;addAddress($email_to);
  
  $mail-&gt;addReplyTo($email_from);
  $mail-&gt;Subject = "Info";
  $mail-&gt;Body = $message;
  
  
  if ($_POST["submit"]){
      if(!$mail-&gt;send()){
          echo "Mailer error: " . $mail-&gt;ErrorInfo;
      }
      else{
          echo "Message sent successfully";
      }
  
  }
  
  }
  </code></pre>
  
  <p>Since it was giving me <code>HTTP ERROR 500</code>, I decided to look into the error logs given by GoDaddy. This is the error: </p>
  
  <p><code>[13-Dec-2018 19:33:13 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/namesearch/public_html/vendor/composer/autoload_real.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/namesearch/public_html/vendor/autoload.php on line 5</code></p>
  
  <p>Please help!!! I have looked up countless solutions and I just don't know how to fix it. I even tried putting my path as: <code>/home/namesearch/public_html/vendor/composer/autoload_real.php</code> and <code>/home/namesearch/public_html/vendor/composer/autoload.php</code> but nothing works. </p>