title: Why wont this email me a notification
body: <p>Hi I've just got this video uploader form up and running and it works just fine. However I want some sort of notification to my email to let me know that someone has just uplaoded a video to my server. But it isn't notifying me I have totally simplified it just to get some sort of message to me but its just not functioning what have I missed?`
      
  
  <pre><code>if(isset($_FILES["FileInput"]) &amp;&amp; $_FILES["FileInput"]["error"]== UPLOAD_ERR_OK)
  {
  
  $UploadDirectory    = '../video_uploader/uploads/';
  
  
  if (!isset($_SERVER['HTTP_X_REQUESTED_WITH'])){
      die();
  }
  
  
  //Is file size is less than allowed size.
  if ($_FILES["FileInput"]["size"] &gt; 500242880) {
      die("File size is too big!");
  }
  
  //allowed file type Server side check
  switch(strtolower($_FILES['FileInput']['type']))
      {
          //allowed file types
          case 'image/png': 
          case 'image/gif': 
          case 'image/jpeg': 
          case 'image/pjpeg':
          case 'text/plain':
          case 'text/html': //html file
          case 'application/x-zip-compressed':
          case 'application/pdf':
          case 'application/msword':
          case 'application/vnd.ms-excel':
          case 'video/mp4':
              break;
          default:
              die('Unsupported File!'); //output error
  }
  
  $File_Name          = strtolower($_FILES['FileInput']['name']);
  $File_Ext           = substr($File_Name, strrpos($File_Name, '.')); 
  $Random_Number      = rand(0, 9999999999); //Random number to be added to name.
  $NewFileName        = $Random_Number.$File_Ext; //new file name
  
  if(move_uploaded_file($_FILES['FileInput']['tmp_name'], $UploadDirectory.$NewFileName   ))
     {
      die('Success! File Uploaded.');
  }else{
      die('error uploading File!');
  }
  
  }
  else
  {
  die('Something wrong with upload! Is "upload_max_filesize" set correctly?');
  }
  
  
  mail("me@myemail.com.", $NewFileName);
  
  
  
  
  
  ?&gt;`
  </code></pre>