public function send(BASE_CLASS_Mail $mail) { if ($this->maliService->getTransfer() == BOL_MailService::TRANSFER_SMTP) { $this->maliService->addToQueue($mail); } else { $this->maliService->send($mail); } }