update
This commit is contained in:
@@ -65,7 +65,9 @@ class ExpiryMail implements ShouldQueue
|
||||
|
||||
try {
|
||||
$email = new ExpiryService($this->template_id,$data);
|
||||
Mail::to($product->Customer->email)->send($email);
|
||||
if (Mail::to($product->Customer->email)->send($email) === null) {
|
||||
return;
|
||||
}
|
||||
\App\Models\Mail::create([
|
||||
'template_id' => $this->template_id,
|
||||
'subject' => $email->envelope()->subject,
|
||||
|
||||
Reference in New Issue
Block a user