ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMailMimeTransportFactory Class Reference
+ Collaboration diagram for ilMailMimeTransportFactory:

Public Member Functions

 __construct (protected ilSetting $settings, private readonly ilAppEventHandler $event_handler)
 
 getTransport ()
 

Detailed Description

Definition at line 21 of file class.ilMailMimeTransportFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailMimeTransportFactory::__construct ( protected ilSetting  $settings,
private readonly ilAppEventHandler  $event_handler 
)

Definition at line 23 of file class.ilMailMimeTransportFactory.php.

24 {
25 }

Member Function Documentation

◆ getTransport()

ilMailMimeTransportFactory::getTransport ( )

Definition at line 27 of file class.ilMailMimeTransportFactory.php.

28 {
29 if (!$this->settings->get('mail_allow_external', '0')) {
30 return new ilMailMimeTransportNull();
31 }
32
33 if ($this->settings->get('mail_smtp_status', '0')) {
34 return new ilMailMimeTransportSmtp($this->settings, $this->event_handler);
35 }
36
37 return new ilMailMimeTransportSendmail($this->settings, $this->event_handler);
38 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: