use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\L10N\IFactory as L10NFactory;
-use OCP\Mail\AutoSubmittedValue;
+use OCP\Mail\Headers\AutoSubmitted;
use OCP\Mail\IEMailTemplate;
use OCP\Mail\IMailer;
use OCP\IUser;
}
$message->setTo([$emailAddress]);
$message->useTemplate($template);
- $message->setAutoSubmitted(AutoSubmittedValue::AUTO_GENERATED);
+ $message->setAutoSubmitted(AutoSubmitted::VALUE_AUTO_GENERATED);
try {
$failed = $this->mailer->send($message);
use OCP\IURLGenerator;
use OCP\IUser;
use OCP\L10N\IFactory;
-use OCP\Mail\AutoSubmittedValue;
+use OCP\Mail\Header\AutoSubmitted;
use OCP\Mail\IEMailTemplate;
use OCP\Mail\IMailer;
use OCP\Security\ICrypto;
$message->setTo([$email => $user->getDisplayName()]);
$message->setFrom([$this->fromAddress => $this->themingDefaults->getName()]);
$message->useTemplate($emailTemplate);
- $message->setAutoSubmitted(AutoSubmittedValue::AUTO_GENERATED);
+ $message->setAutoSubmitted(AutoSubmitted::VALUE_AUTO_GENERATED);
$this->mailer->send($message);
}
}
use OCP\IURLGenerator;
use OCP\IUser;
use OCP\L10N\IFactory;
-use OCP\Mail\AutoSubmittedValue;
+use OCP\Mail\Headers\AutoSubmitted;
use OCP\Mail\IEMailTemplate;
use OCP\Mail\IMailer;
use OCP\Security\ICrypto;
$message
->expects($this->once())
->method('setAutoSubmitted')
- ->with(AutoSubmittedValue::AUTO_GENERATED);
+ ->with(AutoSubmitted::VALUE_AUTO_GENERATED);
$this->defaults
->expects($this->once())
->method('getName')