1 <?php declare(strict_types=1);
27 public function adjust(
string $firstMail,
string $secondMail,
bool $persist =
true) : void
33 $hasFirstEmail = strlen($firstMail) > 0;
34 $hasSecondEmail = strlen($secondMail) > 0;
36 if (!$hasFirstEmail && !$hasSecondEmail) {
39 $this->mailOptions->updateOptions();
47 $this->mailOptions->updateOptions();
55 $this->mailOptions->updateOptions();
Class ilMailOptions this class handles user mails.
__construct(ilMailOptions $mailOptions)
ilMailTransportSettings constructor.
adjust(string $firstMail, string $secondMail, bool $persist=true)
Validates the current instance settings and eventually adjusts these.