Email Not Sending from Byethost Hosting

I deployed my website and I’m trying to send an email from my website that is hosted by Byethost and it displays a success message but for some reason the email is not being received. What might be the problem? Below you will find the PHP script.