ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
4require_once 'Services/Mail/classes/Mime/Sender/interface.ilMailMimeSender.php';
5
10{
14 protected $settings;
15
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}
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