title: Parse error: syntax error, unexpected T_VARIABLE PHP Mailer
body: <p>After struggling with PHPmailer on my website I have yet to reach a solution. First, I was receiving fatal errors from my require() function but changed the path to relative and it worked. Next up, syntax error on line 7. I am not entirely sure why I am receiving an error, can anybody help? </p>
  
  <pre><code>&lt;?php
  $email = $_REQUEST['email'] ;
  
  $message = $_REQUEST['message'] ;
  require "PHPMailer/PHPMailerAutoload.php"
  
  $mail = new PHPMailer();
  
  $mail-&gt;IsSMTP();
  
  $mail-&gt;Host = "localhost";
  
  $mail-&gt;SMTPAuth = true;
  
  $mail-&gt;Username = "(myemail)";  // SMTP username
  
  $mail-&gt;Password = "(mypassword)"; // SMTP password
  
  $mail-&gt;SMTPSecure = "tls";
  
  $mail-&gt;Port = 587;
  
  $mail-&gt;From = "(myemail)";
  
  $mail-&gt;addAddress('anotheroneofmyemails'); 
  
  // set word wrap to 50 characters
  $mail-&gt;WordWrap = 50;
  
  // set email format to HTML
  $mail-&gt;IsHTML(true);
  
  $mail-&gt;Subject = 'Customer Inquiry Information:';
  
  $mail-&gt;Body = $message;
  
  $mail-&gt;AltBody = $message;
  
  if(!$mail-&gt;send()) {
      echo 'Message could not be sent.';
      echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;
  } else {
      echo 'Message has been sent';
  }
  ?&gt;
  </code></pre>