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

Protected Member Functions

 onBeforeSend ()
 
- Protected Member Functions inherited from ilMailMimeTransportBase
 getMailer ()
 
 setMailer (PHPMailer $mailer)
 
 resetMailer ()
 
 onBeforeSend ()
 

Additional Inherited Members

- Public Member Functions inherited from ilMailMimeTransportBase
 __construct (protected ilSetting $settings, private readonly ilAppEventHandler $event_handler)
 
 send (ilMimeMail $mail)
 
 send (ilMimeMail $mail)
 
- Protected Attributes inherited from ilMailMimeTransportBase
PHPMailer $mailer
 

Detailed Description

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

Member Function Documentation

◆ onBeforeSend()

ilMailMimeTransportSmtp::onBeforeSend ( )
protected

Reimplemented from ilMailMimeTransportBase.

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

23 : void
24 {
25 $this->mailer->isSMTP();
26
27 $this->mailer->Host = $this->settings->get('mail_smtp_host', '');
28 $this->mailer->Port = (int) $this->settings->get('mail_smtp_port', '25');
29 if ($this->settings->get('mail_smtp_user', '') !== '') {
30 $this->mailer->SMTPAuth = true;
31 $this->mailer->Username = $this->settings->get('mail_smtp_user', '');
32 $this->mailer->Password = $this->settings->get('mail_smtp_password', '');
33 }
34 $this->mailer->SMTPSecure = $this->settings->get('mail_smtp_encryption', '');
35 $this->mailer->SMTPDebug = 4;
36 }

References ILIAS\Repository\int(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

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