Browse Source
update usages of AutoSubmittedValue to AutoSubmitted::VALUE_
Signed-off-by: Bennet Becker <dev@bennet.cc>
pull/35876/head
Bennet Becker
3 years ago
No known key found for this signature in database
GPG Key ID: B4C66D4902D1FA86
3 changed files with
6 additions and
6 deletions
-
apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php
-
apps/settings/lib/Mailer/NewUserMailHelper.php
-
apps/settings/tests/Mailer/NewUserMailHelperTest.php
|
|
|
@ -36,7 +36,7 @@ use OCP\IConfig; |
|
|
|
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; |
|
|
|
@ -132,7 +132,7 @@ class EmailProvider extends AbstractProvider { |
|
|
|
} |
|
|
|
$message->setTo([$emailAddress]); |
|
|
|
$message->useTemplate($template); |
|
|
|
$message->setAutoSubmitted(AutoSubmittedValue::AUTO_GENERATED); |
|
|
|
$message->setAutoSubmitted(AutoSubmitted::VALUE_AUTO_GENERATED); |
|
|
|
|
|
|
|
try { |
|
|
|
$failed = $this->mailer->send($message); |
|
|
|
|
|
|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -42,7 +42,7 @@ use OCP\IL10N; |
|
|
|
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; |
|
|
|
@ -871,7 +871,7 @@ EOF; |
|
|
|
$message |
|
|
|
->expects($this->once()) |
|
|
|
->method('setAutoSubmitted') |
|
|
|
->with(AutoSubmittedValue::AUTO_GENERATED); |
|
|
|
->with(AutoSubmitted::VALUE_AUTO_GENERATED); |
|
|
|
$this->defaults |
|
|
|
->expects($this->once()) |
|
|
|
->method('getName') |
|
|
|
|