I've uploaded a site to a new server and now the headers in the mail function are not working to send the required email response. This is a newly acquired site and my php knowledge is at the beginner level. I've managed to list the headers that are being sent but I can't seem to find where or why the email won't work. I'd really appreciate some help checking to see if there is an error in one of the header lines or perhaps the redirection.
When the email is sent this is what is output for the headers:
From: with domain name
Bcc: with email
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=1220aabe3151c7827740fbbfd644047d
This is a multi-part message in MIME format
--1220aabe3151c7827740fbbfd644047d
Content-Type: text/html; charset=ISO-8859-1
at the bottom of the email output the boundary is output again and
Warning: cannot modify header information - headers already sent by (output started at "the name of this file is listed here)???
I don't know where to go from here. It seems to be finding the includes file but then I get the Warning message. Should output buffering be added to the includes files? I'm not sure what headers to try and fix or comment out. I would really appreciate some help. I'm trying to figure out the importance of each header but I'm confused by what is necessary to allow the email to be sent.