title: Simple contact form with file upload, which sends file and message to an email address
body: <p>I'm looking to build simple contact form with file upload, which sends a file, email and message to another email address. I would preferably do this in Ajax and post the email, message and file to another email. Are there any resources or tutorials on how to do this? Because I have no clue.</p>
  
  <p>so far I have the following:</p>
  
  <pre><code>var departmentEmail = 'contact.php';
  var email = $('#email').val();
  var message = $('.message').val();
  
   var contactData = {  email: email, message: message};
  
                  $.post(departmentEmail, contactData, function(data){
  
                   });
  </code></pre>
  
  <p>But not sure how to do all the file sending etc.</p>