Revert "require new email status style"

This reverts commit 4d87a391ad.
This commit is contained in:
Andy Miller
2024-04-05 11:49:13 -06:00
parent 4d87a391ad
commit d5eea54aca
2 changed files with 1 additions and 3 deletions

View File

@@ -483,8 +483,6 @@ class LoginController extends AdminController
try {
$message = $email->message($subject, $body, 'text/html')->setFrom($from)->setTo($to);
$sent = $email->send($message);
//backward compatibility
$sent = $sent['status'] ?? 1;
if ($sent < 1) {
throw new \RuntimeException('Sending email failed');
}