These are the main reasons you are not getting emails
You may using your localhost to test : (you need a server to test the emails)
You are using a free hosting . (Free hosting like 000webhost doesnt allow you to send emails from the server)
From email address not valid. (create a from email address in ur mailbox)