See the PHP mailer documentation (GitHub - PHPMailer/PHPMailer: The classic email sending library for PHP
] and Tutorial · PHPMailer/PHPMailer Wiki · GitHub
I see at least two problems:
- You are sending an HTML mail by setting
$mail->Body but did not set
- You are trying to send to a GMail address with wrong settings
GMail requires different settings (e.g. port 587, see PHPMailer/gmail.phps at master · PHPMailer/PHPMailer · GitHub
]). Note also that you must allow less secure apps to send mail (see Allow less secure apps to access accounts - G Suite Administrator Help
I would expect that you get some kind of error message because with your settings the mail will be not accepted by the GMail SMTP server.
I suggest to send a simple mail first. If that works you can add additional content like attachments.