How To Set Bcc And CC Mail Address In Laravel ?

How To Set Bcc And CC Mail Address In Laravel ?

Hi Guys,

Today,I will learn you how to set bcc And cc Mail Address In Laravel Mail. I can show you set bcc (blind carbon copy) and cc (carbon copy) mail address in laravel mail.You can easy get laravel mail in cc and bcc here the example

Laravel Send Mail using Mailable Class Example

You can tell Set Bcc And Cc Mail Address In Laravel Mail before learn how to send Mail here this link

Link:https://itwebtuts.blogspot.com/2021/04/laravel-8-send-email-example-tutorial.html You are not limited to just specifying the "to" recipients when sending a message. You are free to set "to", "cc", and "bcc" recipients all within a single, chained method call: Solution Here, this cc() and bcc() method to you can set bcc and cc mail address in laravel mail.
 /**
 * Show the application dashboard.
 *
 * @return \Illuminate\Contracts\Support\Renderable
 */
public function itTestMail()
{
    $myUsers = 'xzy@gmail.com';
    $myMoreUsers ='abc@gmail.com';
    $evenMyMoreUsers = 'pqr@gmail.com';
    
    Mail::to($myUsers)
        ->cc($moreMyUsers)
        ->bcc($evenMyMoreUsers)
        ->send(new MyTestMail());
    
    dd("Mail Send Successfully");
}
It will help you...