Your code is not wrong. What is the error? Wrong email config perhaps?
this is mail.php configuration
<?php
return array(
'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => array('address' => '[email protected]', 'name' => 'akram1rekik'),
'encryption' => 'tls',
'username' => '[email protected]',
'password' => '**********',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);
If you are getting any errors, the crucial part is to share one. Also, let me know if you get this error on your local server or remote.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community