Closed atthakorn closed 8 years ago
I guess you could just create an object and add these properties to fix it for now. The easy solution would be to add an additional if clause to check whether $user is an object.
Edit: Looks like this has already been fixed on 66cac12
Please upgrade to latest version.
thanks guy.
Description:
The
Mail::to()
doesn't accept an array of emailsSteps To Reproduce:
the result, no email sent to recipients in
$emails
array.I have looked into code in
\Illuminate\Mail\Mailable->setAddress()
. If$address
is an array, it will fall into this conditionas
$address
is array of emails notusers
,$address
will not have email and name properties. therefore, none of emails added into$this->{$property}[]
array, where properties is to, cc, bcc, replyTo.please prioritize to fix!