ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilMailMimeSenderSystem.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/Sender/interface.ilMailMimeSender.php';
5 
10 {
14  protected $settings;
15 
20  public function __construct(\ilSetting $settings)
21  {
22  $this->settings = $settings;
23  }
24 
28  public function hasReplyToAddress()
29  {
30  return strlen($this->settings->get('mail_system_sys_reply_to_addr')) > 0;
31  }
32 
36  public function getReplyToAddress()
37  {
38  return $this->settings->get('mail_system_sys_reply_to_addr');
39  }
40 
44  public function getReplyToName()
45  {
46  return '';
47  }
48 
52  public function hasEnvelopFromAddress()
53  {
54  return strlen($this->settings->get('mail_system_sys_env_from_addr')) > 0;
55  }
56 
60  public function getEnvelopFromAddress()
61  {
62  return $this->settings->get('mail_system_sys_env_from_addr');
63  }
64 
68  public function getFromAddress()
69  {
70  return $this->settings->get('mail_system_sys_from_addr');
71  }
72 
76  public function getFromName()
77  {
78  return $this->settings->get('mail_system_sys_from_name');
79  }
80 }
__construct(\ilSetting $settings)
ilMailMimeSenderSystem constructor.
Class ilMailMimeSenderSystem.
Interface ilMailMimeTransport.
settings()
Definition: settings.php:2