ILIAS  release_8 Revision v8.24
class.ilMailMimeTransportSmtp.php
Go to the documentation of this file.
1<?php
2
19declare(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 ilMailMimeTransportBase.
Class ilMailMimeTransportSmtp.