1 <?php declare(strict_types=1);
41 true === (
bool) $this->
settings->get(
'use_global_reply_to_addr',
false) &&
42 is_string($this->
settings->get(
'global_reply_to_addr',
'')) &&
43 strlen($this->
settings->get(
'global_reply_to_addr',
'')) > 0
45 return (
string) $this->
settings->get(
'global_reply_to_addr');
48 return (
string) $this->
user->getEmail();
56 return (
string) $this->
user->getFullname();
64 return strlen($this->
settings->get(
'mail_system_usr_env_from_addr')) > 0;
72 return $this->
settings->get(
'mail_system_usr_env_from_addr',
'');
80 return $this->
settings->get(
'mail_system_usr_from_addr',
'');
88 $from = $this->
settings->get(
'mail_system_usr_from_name',
'');
89 if (0 == strlen($from)) {
90 return (
string) $this->
user->getFullname();
93 $name = str_ireplace(
'[FULLNAME]', (
string) $this->
user->getFullname(), $from);
94 $name = str_ireplace(
'[FIRSTNAME]', (
string) $this->
user->getFirstname(),
$name);
95 $name = str_ireplace(
'[LASTNAME]', (
string) $this->
user->getLastname(),
$name);
96 if ($name !== $from) {
hasEnvelopFromAddress()
bool
Class ilMailMimeSenderSystem.
getEnvelopFromAddress()
string
Interface ilMailMimeTransport.
getReplyToAddress()
string
__construct(ilSetting $settings, ilObjUser $user)
ilMailMimeSenderSystem constructor.