2014-11-06 5 views
8

전자 메일을 보내려면 기본 Laravel Mail 클래스를 사용하고 있습니다.Laravel mail bcc

본인에게 숨은 참조를 추가하려고하는데 숨은 참조를 추가하면 이메일이 전송되지 않습니다. 나는이 문제를 발견

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'); 
    } 
); 
+3

내가 bcc' 배열'$ 메시지 - 필요 '라고 생각 사용하는 것과 동일한 방법으로 > bcc ([ '[email protected]']); –

답변

15

:
다음은 내 코드입니다.
내가 $message->bcc('[email protected]');

에 대한 올바른 매개 변수를 사용하지 않은 나는 이메일과 이름을 써야했다 : $message->bcc('[email protected]', 'My Name');
내가 $message->to($toEmail, $toName);