I have not working this code.i want to send mail to the email id but it woudnt happened,  I have not working this code.i want to send mail to the email id but it woudnt happened ,  I have not working this code.i want to send mail to the email id but it woudnt happened ,code as below:-
         <h2>Your Contact Info</h2>
          <p>Your First Name* <br />
            <input type="text" name="firstName" id="firstName" required />
          </p>
          <p>Your Last Name* <br />
            <input type="text" name="lastName" id="lastName" required />
          </p>
          <p>Your Email* <br />
            <input type="email" name="email" id="email" required />
          </p>
          <p>Upload Your logo<br />
            <input type="file" name="uploaded_file" id="uploaded_file"> 
          </p>
          <input type="submit" name="submit" />
         </form>
    <?php
    if(isset($_POST['submit'])) {
     $emailAddress = 'xyz@gmail.com';
     $mail=$_POST['email'];
     require_once('php/_lib/class.phpmailer.php');
    $msg = 'First Name:'.$_POST['firstName'].'<br /> Last name:'.$_POST['lastName'].'<br /> Email:'.$_POST['email'].'<br />';
    move_uploaded_file($_FILES["uploaded_file"]["tmp_name"], $_FILES["uploaded_file"]["name"]);
      $mail = new PHPMailer();
      $mail->IsMail();
      $mail->AddReplyTo($mail);
      $mail->AddAddress($emailAddress);
      $mail->From($mail);
      $mail->Subject = "Subject";
      $mail->MsgHTML($msg);
      $mail->AddAttachment( $_FILES["uploaded_file"]["name"]);
      $mail->Send();
        enter code here
      echo'<script> window.location="../index.html"; </script> ';
    }
      ?>