Here is my php code for sending confermation email.
when I run this code an error through,

> 
> Parse error: syntax error, unexpected 'use' (T\_USE) in C:\xampp\htdocs\www\includes\signup.inc.php on line 52
> 
> 
> 

```
 <?php
    ...................
    ...................
  if (mysqli_stmt_execute($stmt)){
    $email_sent_to = $email;
    $email_sent_from = "mymail@gmail.com";
    $subject = "Verify your Email";
    $smtp_username = "mymail@gmail.com";
    $smtp_password = "mypassword";
    $message = "<a href='http://domain/verify.php?vkey=$vkey'>Register Your Account</a> ";

    //Include required phpMailer files
    require 'PHPMailer.php';
    require 'SMTP.php';
    require 'Exception.php';

    //Define name spaces
    use PHPMailer\PHPMailer\PHPMailer;
    use PHPMailer\PHPMailer\SMTP;
    use PHPMailer\PHPMailer\Exception;

    //Create instance of phpMailer
    $mail = new PHPMailer();
    //Set mailer to use smtp
    $mail->isSMTP();
    //Define smtp host
    $mail->Host = "smtp.gmail.com";
    //Enable smtp authentication
    $mail->SMTPAuth = "true";
    //Set type of encryption (ssl/tls)
    $mail->SMTPSecure = "tls";
    //Set port to connect smtp
    $mail->Port = "587";

    //Set gmail userName
    $mail->Username = $smtp_username;
    //Set gmail Password
    $mail->Password = $smtp_password;

    //Set content type
    $mail->isHTML(true); 
    //Set email Subject
    $mail->Subject = $subject;
    //Set sender email
    $mail->setFrom($emai_sent_from);
    //Email body
    $mail->Body = $message;
    //Add recipient
    $mail->addAddress($email_sent_to);

    //Finally send mail
        if ($mail->Send()){
            echo "Email Send Successfully...!";
        }else{
            echo "Failed to send Email....!";
        }

    //Clossing smtp connection
    $mail->smtpClose();

}

?>

```

I also tried by adding the namespaces at the beginning of the code and after my `if (mysqli_stmt_execute($stmt))` statement but it throws the same error.