ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
8 {
12  protected function onBeforeSend()
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  }
25 }
settings()
Definition: settings.php:2
Class ilMailMimeTransportSmtp.
Class ilMailMimeTransportBase.