To clarify my problem a bit, heres an example of how my MIME-message can look:
---lib_multipart-0.51244000.1054380717
Content-Type: text/plain; charset=us-ascii
testing 123
---lib_multipart-0.51244000.1054380717
Content-ID:
Content-Transfer-Encoding: BASE64
Content-Type: application/octet-stream; name="nothing.doc"
Content-Description:
Content-Disposition: attachment; filename="nothing.doc"
filedata
---lib_multipart-0.51244000.1054380717--
Now, the mail shows "testing 123" as inline message but altho the size of the mail is that of the attachment it doesn´t show the actual attached file.
However, if I remove the first "attachment", the one with the inline text, the attached file shows so my guess is that something is wrong there but I have no clue on how to fix it.