title: PHP Mailer is giving me error 404
body: <p>Here is my html for my form, action and everything else should be correct, I'm thinking its probably my php? </p>
  
  <pre><code>&lt;form class="form-inline" role="form" method="post" action="index.php"&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputName"&gt;Name&lt;/label&gt;
              &lt;input type="text" class="form-control" id="inputName" placeholder="Jane Doe"&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputEmail"&gt;Email&lt;/label&gt;
              &lt;input type="email" class="form-control" id="inputEmail" placeholder="jane.doe@example.com"&gt;
              &lt;button type="submit" class="btn btn-default" id="formBtn"&gt;Send Email&lt;/button&gt;
            &lt;/div&gt;
          &lt;/form&gt;
  </code></pre>
  
  <hr>
  
  <p>Here is my PHP that I copied and then changed the details to fit myself from github. </p>
  
  <hr>
  
  <pre><code>&lt;?php
  
  require 'phpMailer/PHPMailerAutoload.php';
  
  $mail = new PHPMailer;
  
  $mail-&gt;SMTPDebug = 3;
  
  $mail-&gt;isSMTP();                                      // Set mailer to use SMTP
  $mail-&gt;Host = 'smtp.gmail.com';                     // Specify main and backup SMTP servers
  $mail-&gt;SMTPAuth = true;                               // Enable SMTP authentication
  $mail-&gt;Username = 'email@gmail.com';                 // SMTP username
  $mail-&gt;Password = 'password';                           // SMTP password
  $mail-&gt;SMTPSecure = 'ssl';                            // Enable TLS encryption, `ssl` also accepted
  $mail-&gt;Port = 465;                                    // TCP port to connect to
  
  $mail-&gt;From = 'email@gmail.com';
  $mail-&gt;FromName = 'Bradley';
  $mail-&gt;addAddress('email@gmail.com', 'Brad');     // Add a recipient
  $mail-&gt;addReplyTo('email@gmail.com', 'Reply address');
  
  
  $mail-&gt;addAttachment('/var/tmp/file.tar.gz');         // Add attachments
  $mail-&gt;addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name
  $mail-&gt;isHTML(true);                                  // Set email format to HTML
  
  $mail-&gt;Subject = 'Email from Vote Unanimous';
  $mail-&gt;Body    = 'You have a new email from your Vote Unanimous account. You should have a name and new email';
  $mail-&gt;AltBody = 'You have a new email from your Vote Unanimous account. You should have a name and new email';
  
  if(!$mail-&gt;send()) {
      echo 'Message could not be sent.';
      echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;
  } else {
      echo 'Message has been sent';
  }
  </code></pre>