Laravel - Sending Email
Larvel Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
In this tutorial, I will explain how to send an email from laravel script.
Use this line to the controller function
$emailaddress = $request->emailaddress;
$data = array('name'=>"Find Me Online Service",'email'=>$emailaddress);
Mail::send('subscripationmail', $data, function($message) use ($name, $email) {
$message->to($emailaddress, 'Thank You')->subject
('Thank You');
$message->from('no-reply@findmehomeservice.com','Find Me Home Service');
});
echo "HTML Email Sent. Check your inbox.";
Laravel View name the page view
subscripationmail.blade.php
<p>Hi, {{ $email }}</p>
<p><b>Thanks for Subscribe</b></p>
<p>office address</p>
<p>Freelessionpro</p>
<p>Kuala Lumpur,50150</p>
<p>Malaysia</p>