finally or rather hopefully figures out what was wrong (is still not working but making some headway)
the problem seems that i need certain lines with double lines and others with single lines.
i dont understand why MIME has to be so strict? is there a formula that i have to follow such as:
MIME-Version:1.0\r\n (single)
Content-type: multipart/mixed; boundary="JUSTWORKFORGODSSAKES!"\r\n\r\n
is there a specific structure i am suppose to use and where can i get this?
here is my current code as i change the r\n\ to different values i get different emails, ones that contain attachments others with different sizes etc.
please help?
$hdr .= 'Content-Type:'. $file1type.';name="'.$file1name.'"'."";
$hdr .="Content-Transfer-Encoding: base64\r\n\r\n";
// $hdr .= "Content-ID: classic1\r\n\r\n";
$hdr .= "Content-Disposition: inline\r\n";
$hdr .= "$fileinc\r\n\r\n";
// $hdr .= "$fileinc\r\n";
//$hdr .= "--$random--\r\n\r\n";