I'm very new to php and am trying to test the mail() function locally. I'm using Homestead/Laravel as a local server. My php.ini file only has one line, where I turn debugging on. Any Homestead/Laravel people out there know how to edit my files so that I can test email locally? Note: I added echo in front of the mail funciton to see if it was working at all.
<?php
$emailTo = "test@gmail.com";
$subject = "Testing out PHP";
$body = "Huzzah";
$headers = "From: test@test.co.uk";
echo mail($emailTo, $subject, $body, $headers);
?>