Laravel mail bcc

I use the default Laravel Mail class to send emails.

I try to add bcc for myself, but when I add bcc, the email is not sent at all.
Here is my code:

 Mail::send( 'emails.order.order', array( 'dateTime' => $dateTime, 'items' => $items ), function($message) use ($toEmail, $toName) { $message->from('my@email.com', 'My Company'); $message->to($toEmail, $toName); $message->bcc('mybcc@email.com'); $message->subject('New order'); } ); 
+8
php email laravel laravel-4
source share
1 answer

I found a problem.
I did not use the correct parameters for $message->bcc('mybcc@email.com');

I had to write an email and a name: $message->bcc('mybcc@email.com', 'My Name');
Just like I use $message->to($toEmail, $toName);

+15
source share

All Articles