ILIAS  release_8 Revision v8.24
class.ilMailMimeTransportFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
25
27 {
28 $this->settings = $settings;
29 $this->eventHandler = $eventHandler;
30 }
31
33 {
34 if (!$this->settings->get('mail_allow_external', '0')) {
35 return new ilMailMimeTransportNull();
36 }
37
38 if ($this->settings->get('mail_smtp_status', '0')) {
39 return new ilMailMimeTransportSmtp($this->settings, $this->eventHandler);
40 }
41
42 return new ilMailMimeTransportSendmail($this->settings, $this->eventHandler);
43 }
44}
Global event handler.
__construct(ilSetting $settings, ilAppEventHandler $eventHandler)
Class ilMailMimeTransportNull.
Class ilMailMimeTransportSendmail.
Class ilMailMimeTransportSmtp.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...