Warning: Undefined variable $conn in E:\phpwebsite\it2mailer\mailer.php on line 122

Fatal error: Uncaught TypeError: mysqli_close(): Argument #1 ($mysql) must be of type mysqli, null given in E:\phpwebsite\it2mailer\mailer.php:122 Stack trace: #0 E:\phpwebsite\it2mailer\mailer.php(122): mysqli_close(NULL) #1 {main} thrown in E:\phpwebsite\it2mailer\mailer.php on line 122