ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilMailMimeTransportSmtp.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  protected function onBeforeSend(): 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  }
40 }
Class ilMailMimeTransportSmtp.
Class ilMailMimeTransportBase.