SMTP server error: Authentication required

I am a new one for amazon Ec2 instance.Now I want to send mail to client using php code.I installed wamp in my amazon ec2 instance and run these file.

 <?php
        use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;


require 'src/PHPMailer.php';
require 'src/SMTP.php';

        //SMTP Settings
        $mail = new PHPMailer();
        $mail->IsSMTP();
        $mail->SMTPAuth   = true; 
        $mail->SMTPSecure = "tls"; 
        $mail->Host       = "email-smtp.us-east-1.amazonaws.com";
        $mail->Port = 25;
        $mail->Username   = "support@example.com";
        $mail->Password   = "*******";
        //

        $mail->SetFrom('support@example.com', 'Example'); //from (verified email address)
        $mail->Subject = "Email Subject"; //subject

        //message
        $body = "This is a test message.";
        $body = eregi_replace("[\]",'',$body);
        $mail->MsgHTML($body);
        //

        //recipient
        $mail->AddAddress("myname@gmail.com", "Myname"); 

        //Success
        if ($mail->Send()) { 
            echo "Message sent!"; die; 
        }

        //Error
        if(!$mail->Send()) { 
            echo "Mailer Error: " . $mail->ErrorInfo; 
        } 

        ?>

When run these file and I got some error.

Parse error: parse error in C:\wamp\www\samplemail\src\PHPMailer.php on line 304