title: PHPMailer send mail but file attachment is not with it
body: <p>Have worked with PHPMailer for 4 Hours now, it's works fine and send the mail.
  But when i attach a file - then file is not included in the mail i get.</p>
  
  <p>I have only added a file to the "File1", can someone see/say whats wrong and why i don't get the attached file, when i get a mail from the script ?</p>
  
  <p>I have tried with:</p>
  
  <pre><code>$mail-&gt;AddAttachment($_FILES['file1']['tmp_name'], $_FILES['file1']['name']);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$mail-&gt;AddAttachment($file1);
  </code></pre>
  
  <p>Without any luck to attach the file.</p>
  
  <p>My code is:</p>
  
  <pre><code>$mail = new PHPMailer();
  $mail-&gt;IsSMTP();
  $mail-&gt;SMTPDebug = 0;
  $mail-&gt;SMTPAuth = false;
  $mail-&gt;Host = 'smtp.curanet.dk';
  $mail-&gt;Port = 25;
  $mail-&gt;SetFrom('thomas@test.dk', 'SJ');
  $mail-&gt;AddAddress('thomas@test.dk', 'SJ');
  $mail-&gt;Subject = 'Henvendelse fra Hjemmeside';
  
  $besked1 = "Der er flg. henvendelse fra hjemmesiden ang. Tilbud: \n";
  $besked1 .= "Navn: " . $_POST['fromname']. "\n";
  $besked1 .= "Telefon: " . $_POST['fromtlf']. "\n";
  $besked1 .= "E-mail: " . $_POST['fromemail']. "\n";
  $besked1 .= "Start dato: " . $_POST['begin_day']. ". " . $_POST['begin_month']. " " . $_POST['begin_year']. "\n";
  $besked1 .= "Slut dato: " . $_POST['complete_day']. ". " . $_POST['complete_month']. " " . $_POST['complete_year']. "\n";
  $besked1 .= "Budget: " . $_POST['building_budget']. " kr.". "\n";
  $besked1 .= "Besked: " . $_POST['frommsg'];
  
  $mail-&gt;Body = $besked1; 
  $mail-&gt;IsHTML(false);
  
  $mail-&gt;AddAttachment($_FILES['file1']['tmp_name'], $_FILES['file1']['name']);
  $mail-&gt;AddAttachment($_FILES['file2']['tmp_name'], $_FILES['file2']['name']);
  $mail-&gt;AddAttachment($_FILES['file3']['tmp_name'], $_FILES['file3']['name']);
  /*$mail-&gt;AddAttachment($file1);
  $mail-&gt;AddAttachment($file2);
  $mail-&gt;AddAttachment($file3);*/
  
  if($mail-&gt;send())
  {
  header('Location: tak.php');
  } else {
      echo "&lt;script&gt;alert('Mailer Error: " . $mail-&gt; ErrorInfo."')&lt;/script&gt;";
  }
  </code></pre>