lundi 30 octobre 2017

Laravel: How to change `to` filed of reiceipt in mail?

I found in the docs how to change the name of the sender but not where to specify the to field. I also did not find anything in the config/mail.php file.

When I send something to user Max Mustermann like this:

$user = \App\User::where('name','=','Mustermann')
                   ->where('vorname','=','Max')->first();
\Mail::to($user)->send(new Mail());

the mail will be send to

Mustermann < test@email.net >

but I want to send it to

Max Mustermann < test@email.net >

Where can I change this setting?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2igMU0r
via IFTTT

Aucun commentaire:

Enregistrer un commentaire