Fixed outgoing mails disabled issue
Fixed language Fixed languag and email create/edit issue v1.10.2 build updates Fixed codacy issues
This commit is contained in:

committed by
Manish Verma

parent
ac4e053c2d
commit
6a3d093b4c
@@ -36,8 +36,13 @@ class SendEmail extends Job implements ShouldQueue
|
||||
*/
|
||||
public function handle(PhpMailController $PhpMailController)
|
||||
{
|
||||
$p = $PhpMailController->sendEmail($this->from, $this->to, $this->message, $this->template);
|
||||
try {
|
||||
$p = $PhpMailController->sendEmail($this->from, $this->to, $this->message, $this->template);
|
||||
|
||||
return $p;
|
||||
return $p;
|
||||
} catch (\Exception $e) {
|
||||
logger()->warning($e->getMessage());
|
||||
session()->flash('fails', $e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user