ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMailMimeTransportSmtp Class Reference

Class ilMailMimeTransportSmtp. More...

+ 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 $eventHandler)
 
 send (ilMimeMail $mail)
 
- Protected Attributes inherited from ilMailMimeTransportBase
PHPMailer $mailer
 

Detailed Description

Member Function Documentation

◆ onBeforeSend()

ilMailMimeTransportSmtp::onBeforeSend ( )
protected

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

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

26  : void
27  {
28  $this->mailer->isSMTP();
29 
30  $this->mailer->Host = $this->settings->get('mail_smtp_host', '');
31  $this->mailer->Port = (int) $this->settings->get('mail_smtp_port', '25');
32  if ($this->settings->get('mail_smtp_user', '') !== '') {
33  $this->mailer->SMTPAuth = true;
34  $this->mailer->Username = $this->settings->get('mail_smtp_user', '');
35  $this->mailer->Password = $this->settings->get('mail_smtp_password', '');
36  }
37  $this->mailer->SMTPSecure = $this->settings->get('mail_smtp_encryption', '');
38  $this->mailer->SMTPDebug = 4;
39  }
+ Here is the call graph for this function:

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