Laravel is the most famous framework of php. If you want to send mail using laravel follow the method.
<?php $data=array('email'=>'data@gmail.com'); $m['to_email']='to@domain.com'; Mail::send('email.email_template', $data, function ($m) { $m->from('from@domain.com', 'Topic'); $m->to($m['to_email'], 'User Name')->subject('Subject'); }); ?>
Here in send function the first parameter is for view file.Second one is for passing data to view file .
In email_template.blade.php you can use the email as {{$email}}
Question and answer is powered by AnsPress.io