Here is my code:
1st part:
Mail::send('emails.reservation-mail',$data,function ($message) use ($data){
$message->from($data['from']);
$message->to($data['email']);
$message->subject($data['subject']);
});
2nd part:
Mail::send('emails.booking-mail',$data,function ($message) use ($data){
$message->from($data['email']);
$message->to($data['from']);
$message->subject('Thank You For Booking. '.SITE_META_TITLE);
});
I am using the above code in our website. 1st part doesn't work but 2nd part is working in the same form.
I want to recieve the user's date in our mailbox. Only thank you message goes to user but didn't recieve the user's data in our mailbox.
Even i use my email address manually: $message->to($data['[email protected]']);
still doesn't recieve any data in the mail.