19declare(strict_types=1);
48 $mailValueObjects = $this->mailJsonService->convertFromJson((
string)
$input[1]->
getValue());
50 foreach ($mailValueObjects as $mailValueObject) {
53 $mail->setSaveInSentbox($mailValueObject->shouldSaveInSentBox());
54 $contextId =
$input[2]->getValue();
56 ->withContextId((
string) $contextId)
57 ->withContextParameters((array) unserialize(
$input[3]->
getValue(), [
'allowed_classes' =>
false]));
59 $recipients = $mailValueObject->getRecipients();
60 $recipientsCC = $mailValueObject->getRecipientsCC();
61 $recipientsBCC = $mailValueObject->getRecipientsBCC();
63 $this->dic->logger()->mail()->info(
65 'Mail delivery to recipients: "%s" CC: "%s" BCC: "%s" From sender: "%s"',
69 $mailValueObject->getFrom()
77 $mailValueObject->getSubject(),
78 $mailValueObject->getBody(),
79 $mailValueObject->getAttachments(),
80 $mailValueObject->isUsingPlaceholders()
ILIAS BackgroundTasks Value $output
Customizing of pimple-DIC for ILIAS.
getExpectedTimeOfTaskInSeconds()
ilMailValueObjectJsonService $mailJsonService
run(array $input, Observer $observer)