ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
Mail.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments\ConsumerToolbox
;
22
23
use
ilMimeMailNotification
;
24
use
ilMailException
;
25
use
ilMail
;
26
27
class
Mail
extends
ilMimeMailNotification
28
{
29
public
function
__construct
()
30
{
31
parent::__construct
(
false
);
32
}
33
34
public
function
sendGeneric
(
string
$subject
,
string
$body
): void
35
{
36
foreach
($this->
getRecipients
() as $rcp) {
37
try
{
38
$this->handleCurrentRecipient($rcp);
39
}
catch
(
ilMailException
) {
40
continue
;
41
}
42
43
if
(!$this->
getCurrentRecipient
()) {
44
continue
;
45
}
46
47
$this->
initMimeMail
();
48
$this->
initLanguageByIso2Code
();
49
50
$this->
setSubject
($subject);
51
$this->
appendBody
($body);
52
$this->
appendBody
(
ilMail::_getInstallationSignature
());
53
54
$this->
sendMimeMail
($this->
getCurrentRecipient
());
55
}
56
}
57
}
ILIAS\LegalDocuments\ConsumerToolbox\Mail\sendGeneric
sendGeneric(string $subject, string $body)
Definition:
Mail.php:34
ilMailNotification\appendBody
appendBody(string $a_body)
Definition:
class.ilMailNotification.php:97
ILIAS\LegalDocuments\ConsumerToolbox\Mail\__construct
__construct()
Definition:
Mail.php:29
ilMailNotification\$body
string $body
Definition:
class.ilMailNotification.php:34
ilMimeMailNotification\initLanguageByIso2Code
initLanguageByIso2Code(string $a_code='')
Definition:
class.ilMimeMailNotification.php:60
ilMimeMailNotification\getCurrentRecipient
getCurrentRecipient()
Definition:
class.ilMimeMailNotification.php:103
ilMimeMailNotification
ilMailNotification\$subject
string $subject
Definition:
class.ilMailNotification.php:33
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
ilMail
ILIAS\LegalDocuments\ConsumerToolbox
Definition:
Blocks.php:21
ilMimeMailNotification\setSubject
setSubject(string $a_subject)
Definition:
class.ilMimeMailNotification.php:47
Mail
RFC 822 Email address list validation Utility.
ilMimeMailNotification\sendMimeMail
sendMimeMail(string $a_rcp)
Definition:
class.ilMimeMailNotification.php:39
ilMailNotification\getRecipients
getRecipients()
Definition:
class.ilMailNotification.php:112
ilMailException
ilMimeMailNotification\initMimeMail
initMimeMail()
Definition:
class.ilMimeMailNotification.php:52
ilMail\_getInstallationSignature
static _getInstallationSignature()
Definition:
class.ilMail.php:1379
Services
LegalDocuments
classes
ConsumerToolbox
Mail.php
Generated on Wed Sep 10 2025 14:11:32 for ILIAS by
1.8.13 (using
Doxyfile
)