How To Set Bcc And Cc Mail Address In Laravel Mail?
Dec 10, 2019
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...
- How to Notifications With database Driver in Laravel 11?
- How to Send Email Via Notification in Laravel 11?
- How to Install and Configure Laravel 11 Debugbar?
- How to Like Dislike System in Laravel 11?
- How to Paginate a Model with Relationship in Laravel 11?
- Laravel 11 Upload Files to Amazon S3 Example
- Laravel 11 Send WhatsApp Messages Example
- Laravel 11 Rest API Authentication Using JWT Tutorial