I've tried adding $data to the function set as the 3rd parameter which hasn't helped
Mail::queue(array('text' => 'emails.plaintext'), $data, function($message, $data)
{
$message->from('[email protected]', 'My Name');
$message->to($data['email'])->subject('Email Subject');
});
I've also tried defining a new variable for the email which hasn't worked either
$email = $data['email'];
Mail::queue(array('text' => 'emails.plaintext'), $data, function($message)
{
$message->from('[email protected]', 'My Name');
$message->to($email)->subject('Email Subject');
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community