private function phpMailerSettings() {
        $phpMailer = new PHPMailer();
        if (strlen(env('MAIL_HOST')) > 0) {
            $phpMailer->SMTPDebug = 0;
            $phpMailer->isSMTP();
            $phpMailer->Host = env('MAIL_HOST');
            $phpMailer->SMTPAuth = true;
            $phpMailer->SMTPSecure = env('MAIL_SMTP_SECURE');
            $phpMailer->Port = env('MAIL_PORT');
            $phpMailer->Username = env('MAIL_USERNAME');
            $phpMailer->Password = env('MAIL_PASSWORD');
        } else {
            $phpMailer->isMail();
        }

        $phpMailer->isHTML(true);

        $this->mailer = $phpMailer;
    }