mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 04:21:20 +00:00
Import statements and update configuration.
This commit is contained in:
@@ -30,6 +30,7 @@ use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Symfony\Component\Mailer\Exception\TransportException;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Class MailError.
|
||||
@@ -80,7 +81,7 @@ class MailError extends Job implements ShouldQueue
|
||||
}
|
||||
}
|
||||
);
|
||||
} catch (\Exception|TransportException $e) {
|
||||
} catch (Exception|TransportException $e) {
|
||||
$message = $e->getMessage();
|
||||
if (str_contains($message, 'Bcc')) {
|
||||
app('log')->warning('[Bcc] Could not email or log the error. Please validate your email settings, use the .env.example file as a guide.');
|
||||
|
||||
Reference in New Issue
Block a user