mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-29 01:06:38 +01:00
require new email status style
This commit is contained in:
@@ -483,6 +483,8 @@ 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