I have a email send function:
Mail::send('emails.message', ['text'=> $email['message']], function($message, $email)
{
$message->to($email['email'], 'Name')->subject('Subj');
});
And now i have a error:
Missing argument 2 for {closure}()
How i can flash $email to the my closure function?
Try this:
function ($message) use ($email) {
//...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With