I am using Laravel and i would like to use php mail function. I have tried this:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'From: Your name <info@address.com>' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail('myaddress@gmail.com', 'My Subject', 'test', $headers);
but no email get's sent atleast I do not recieve it checked spam folder and it's not there and I do not recieve any error message when this code is executed.
what does php mail function use to send mail? Maybe I missed configuring something?
Also I am not running this localy, I have it uploaded to my VPS which runs Ubuntu 16.04.1 LTS