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?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire