I'm trying to learn web development and right now I'm trying to do a contact form.
I couldn't get it to work so I googled it and found a page that said "Make sure php emailing even works. put this code in a new php file and open it"
<?php
mail('mail1@mail.com','Test mail','The mail function is working!');
echo 'Mail sent!';
?>
I put my email into it and ran it. It prints the message on the web browser but when I check my email (inbox and spam folder) nothing is there.
How come I can't get these emails?