I'm currently trying to create a website page that will take a customers information for a service call and email it to my bosses email so that it can be processed. Of course, I'm having some issues with it.  I am able to send an email to the same server as website is on with no problem.  However, when I try to send it to another server with a different domain it doesn't work and sends a daemon back.  I understand that it probably has to do with some sort of authentication but I'm not sure how to go about fixing this. I would greatly appreciate any information. Below is  my code that I'm using.


$sentmail=mail('myboss@gmail.com','test subject','test message','From: mydomainemail@mywebsite.com');
if ($sentmail)
{echo "it says that it sent";}