There really can't be anything wrong with the code on the php page if it is going to the CC and BCC recipients. The issue is with either the sending or receiving SMTP server. If your local server on GoDaddy has that domain set up and it thinks that it is in charge of the emails that go to that domain, then it might not be sending out the email to the recipient. But this is a server configuration problem. Do you have CPanel access on GoDaddy?
This is probably something you will want to ask with GoDaddy support. They may be able to help you check the SMTP error log and figure out where it is failing.
One of the new features in DataBridge V2 is to use authenticated email and send from an external server. So you could send the emails from the 1and1 server directly with an emial account you set up and username and password and it will send just like it does when you use outlook.