|
@@ -35,7 +35,7 @@ use OCP\IConfig;
|
|
|
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;
|
|
@@ -182,7 +182,7 @@ class NewUserMailHelper {
|
|
|
$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);
|
|
|
}
|
|
|
}
|