I am using the default Laravel Mail
class to send emails.
I am trying to add bcc to myself, but when I add a bcc the email is not send at all.
Here is my code:
Mail::send(
'emails.order.order',
array(
'dateTime' => $dateTime,
'items' => $items
),
function($message) use ($toEmail, $toName) {
$message->from('[email protected]', 'My Company');
$message->to($toEmail, $toName);
$message->bcc('[email protected]');
$message->subject('New order');
}
);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…