ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilMailMimeTransportSmtp.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
12 protected function onBeforeSend() : void
13 {
14 $this->mailer->isSMTP();
15
16 $this->mailer->Host = $this->settings->get('mail_smtp_host');
17 $this->mailer->Port = (int) $this->settings->get('mail_smtp_port');
18 if (strlen($this->settings->get('mail_smtp_user')) > 0) {
19 $this->mailer->SMTPAuth = true;
20 $this->mailer->Username = $this->settings->get('mail_smtp_user');
21 $this->mailer->Password = $this->settings->get('mail_smtp_password');
22 }
23 $this->mailer->SMTPSecure = $this->settings->get('mail_smtp_encryption');
24 $this->mailer->SMTPDebug = 4;
25 }
26}
An exception for terminatinating execution or to throw for unit testing.
Class ilMailMimeTransportBase.
Class ilMailMimeTransportSmtp.
settings()
Definition: settings.php:2