ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
9{
11 protected $settings;
12
18 {
19 $this->settings = $settings;
20 }
21
25 public function hasReplyToAddress() : bool
26 {
27 return strlen($this->settings->get('mail_system_sys_reply_to_addr')) > 0;
28 }
29
33 public function getReplyToAddress() : string
34 {
35 return $this->settings->get('mail_system_sys_reply_to_addr', '');
36 }
37
41 public function getReplyToName() : string
42 {
43 return '';
44 }
45
49 public function hasEnvelopFromAddress() : bool
50 {
51 return strlen($this->settings->get('mail_system_sys_env_from_addr')) > 0;
52 }
53
57 public function getEnvelopFromAddress() : string
58 {
59 return $this->settings->get('mail_system_sys_env_from_addr', '');
60 }
61
65 public function getFromAddress() : string
66 {
67 return $this->settings->get('mail_system_sys_from_addr', '');
68 }
69
73 public function getFromName() : string
74 {
75 return $this->settings->get('mail_system_sys_from_name', '');
76 }
77}
An exception for terminatinating execution or to throw for unit testing.
Class ilMailMimeSenderSystem.
__construct(ilSetting $settings)
ilMailMimeSenderSystem constructor.
ILIAS Setting Class.
Interface ilMailMimeTransport.
settings()
Definition: settings.php:2