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

10-Apr-2023

.

Admin

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:https://www.nicesnippets.com/blog/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 = 'nicesnippets@gmail.com';

$myMoreUsers ='itsolutionstuff@gmail.com';

$evenMyMoreUsers = 'hdtaboo@gmail.com';

Mail::to($myUsers)

->cc($moreMyUsers)

->bcc($evenMyMoreUsers)

->send(new MyTestMail());

dd("Mail Send Successfully");

}

It will help you...

#Laravel

#Laravel 6