How To Set Bcc And Cc Mail Address In Laravel Mail?

Admin   Laravel   336  2021-06-13 18:00:18

Hi Dev,

In this blog,i will tell 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 6 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:laravel-6-send-mail-using-mailable-class

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 myTestMail()

{

$myUsers = '[email protected]';

$myMoreUsers ='[email protected]';

$evenMyMoreUsers = '[email protected]';

Mail::to($myUsers)

->cc($moreMyUsers)

->bcc($evenMyMoreUsers)

->send(new MyTestMail());

dd("Mail Send Successfully");

}

It will help you...