ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilMailMimeTransportSmtp.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Mail/classes/Mime/Transport/class.ilMailMimeTransportBase.php';
5 
10 {
14  protected function onBeforeSend()
15  {
16  $this->mailer->isSMTP();
17 
18  $this->mailer->Host = $this->settings->get('mail_smtp_host');
19  $this->mailer->Port = (int) $this->settings->get('mail_smtp_port');
20  if (strlen($this->settings->get('mail_smtp_user')) > 0) {
21  $this->mailer->SMTPAuth = true;
22  $this->mailer->Username = $this->settings->get('mail_smtp_user');
23  $this->mailer->Password = $this->settings->get('mail_smtp_password');
24  }
25  $this->mailer->SMTPSecure = $this->settings->get('mail_smtp_encryption');
26  }
27 }
Class ilMailMimeTransportSmtp.
Class ilMailMimeTransportBase.
settings()
Definition: settings.php:2