Go to your Google account, turn on 2-step verification, create an app password, and then use that password in PHPMailer instead of your Gmail password. After that, try sending the email again.