ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilMailMimeTransportFactory Class Reference
+ Collaboration diagram for ilMailMimeTransportFactory:

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

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

29 {
30 }

Member Function Documentation

◆ getTransport()

ilMailMimeTransportFactory::getTransport ( )

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

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->event_handler, $this->irss);
40 }
41
42 return new ilMailMimeTransportSendmail($this->settings, $this->event_handler, $this->irss);
43 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

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