public function mailer($phpMailer)
    {
        if (MAILER_SMTP) {
            $phpMailer->isSMTP();
            $phpMailer->SMTPAuth = true;
        }
        $phpMailer->Host = MAILER_HOST;
        $phpMailer->Port = MAILER_PORT;
        $phpMailer->Username = MAILER_USERNAME;
        $phpMailer->Password = MAILER_PASSWORD;
        $phpMailer->SMTPSecure = MAILER_TRANSPORT;
        $phpMailer->Sender = $phpMailer->From;
    }