ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMailMimeTransportSmtp.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 protected function onBeforeSend(): 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 }
37}