8
我使用默認的Laravel Mail
類來發送電子郵件。Laravel郵件密碼抄送:
我想爲自己添加密件抄送,但是當我添加密件抄送時,根本不發送電子郵件。
這裏是我的代碼:
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');
}
);
我認爲'bcc'進行陣列'$ MESSAGE-用同樣的方法> BCC([ '[email protected]']);' – 2014-11-06 08:23:43