A lot of the cheaper hosting solutions out there won't allow you to send email like this. Some require you to send via SMTP, other require you to upgrade your package, etc.
Check first with the hosting company to see if you're actually allowed to send email using mail() like this.
Also, your die() command is attempting to display the last error you had with your database, which is not what you actually want I'm sure!