Emails works fine with dummy data:
Mail::send(\'emails.contact\', $messageData, function ($message) use ($messageData) {
$message->from(\'joetanno
You cannot use $message
as your variable - see L4 docs here.
So change it to something like "msg" - i.e.:
$messageData = array(
'name' => 'test name',
'email' => 'test email',
'msg' => 'test message'
);
$data = array( 'email' => 'sample@sample.com', 'first_name' => 'Lar', 'from' => 'sample@sample.comt', 'from_name' => 'Vel' );
Mail::send( 'email.welcome', $data, function( $message ) use ($data)
{
$message->to( $data['email'] )->from( $data['from'], $data['first_name'] )->subject( 'Welcome!' );
});