19 declare(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()
    82             $mail->sendMail($mail_data);
 
ILIAS BackgroundTasks Value $output
 
readonly ILIAS DI Container $dic
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
run(array $input, Observer $observer)
 
readonly ilMailValueObjectJsonService $mailJsonService
 
getExpectedTimeOfTaskInSeconds()