ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Mail.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ilMail;
26
28{
29 public function __construct()
30 {
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();
49
50 $this->setSubject($subject);
51 $this->appendBody($body);
53
54 $this->sendMimeMail($this->getCurrentRecipient());
55 }
56 }
57}
sendGeneric(string $subject, string $body)
Definition: Mail.php:34
static _getInstallationSignature()
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
RFC 822 Email address list validation Utility.