|
|
@@ -21,9 +21,14 @@ class Sender |
|
|
'mailer' => $email->type, |
|
|
'mailer' => $email->type, |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
$bcc = config('mail.bcc_targets', []); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
Mail::to($email->email) |
|
|
|
|
|
->send(new TextEmail($email->subject, $email->content, $email->emailAttachments)); |
|
|
|
|
|
|
|
|
$send = Mail::to($email->email); |
|
|
|
|
|
if (0 < count($bcc)) { |
|
|
|
|
|
$send = $send->bcc($bcc); |
|
|
|
|
|
} |
|
|
|
|
|
$send->send(new TextEmail($email->subject, $email->content, $email->emailAttachments)); |
|
|
} catch (Exception $e) { |
|
|
} catch (Exception $e) { |
|
|
Log::error("メール送信失敗", [ |
|
|
Log::error("メール送信失敗", [ |
|
|
'id' => $email->id, |
|
|
'id' => $email->id, |
|
|
|