18declare(strict_types=1);
30 public function encode(array $mails): string
33 foreach ($mails as $m) {
34 $sanitized[] = new \ilMailValueObject(
37 $m->getRecipientsCC(),
38 $m->getRecipientsBCC(),
39 $this->trafo->transform($m->getSubject()),
40 $this->trafo->transform($m->getBody()),
42 $m->isUsingPlaceholders(),
43 $m->shouldSaveInSentBox()
47 return $this->inner->encode($sanitized);
__construct(private readonly MailPayloadEncoder $inner, private readonly \ILIAS\Mail\Transformation\Utf8Mb4Sanitizer $trafo)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
RFC 822 Email address list validation Utility.