mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Revert "require new email status style"
This reverts commit 4d87a391ad.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user