19 declare(strict_types=1);
27 public function adjust(
string $first_mail,
string $second_mail,
bool $persist =
true): void
33 $has_first_email = $first_mail !==
'';
34 $has_second_email = $second_mail !==
'';
36 if (!$has_first_email && !$has_second_email) {
39 $this->mail_options->updateOptions();
47 $this->mail_options->updateOptions();
55 $this->mail_options->updateOptions();
adjust(string $first_mail, string $second_mail, bool $persist=true)
final const int SECOND_EMAIL
final const int INCOMING_LOCAL
__construct(private readonly ilMailOptions $mail_options)
final const int FIRST_EMAIL