19 declare(strict_types=1);
38 $this->
setSender($sender_mail_options->getUsrId());
42 public function send(): bool
51 $this->
getMail()->setSaveInSentbox(
false);
55 $this->
setSubject($this->sender_mail_options->getAbsenceAutoresponderSubject());
57 $this->
setBody($this->sender_mail_options->getAbsenceAutoresponderBody());
59 $this->
appendBody($this->sender_mail_options->getSignature());
64 '[NEXT_AUTO_RESPONDER_DATETIME]'
static array static setUseRelativeDates(bool $a_status)
set use relative dates
appendBody(string $a_body)
sendMail(array $a_rcp, bool $a_parse_recipients=true)
static setLanguage(ilLanguage $a_lng)
static useRelativeDates()
initLanguage(int $a_usr_id)
getLanguageText(string $a_keyword)
setRecipients(array $a_rcp)
__construct(private readonly ilMailOptions $sender_mail_options, int $receiver_id, private readonly DateTimeImmutable $next_auto_responder_datetime)
__construct(Container $dic, ilPlugin $plugin)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
setSubject(string $a_subject)