Ok I meant the problem you initila message is that:
- The receiver hits
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
these lines first. When it sees the file it expects an atackment phrase like that:
Content-Type: multipart/mixed; boundary="===============0
334752041=
="
Mime-version: 1.0
Sender:
[email protected]--===============033475204
1==
Content-Type: multipart/alternative; boundary=0015174be6ea54f97
3046aff5eb
6
--0015174be6ea54f973046aff
5eb6
Content-Type: text/plain; charset=ISO-8859-9
Content-Transfer-Encoding:
quoted-printable
.
.
.
--0015174be6ea54f973046aff
5eb6
Since your message body does not include such a part which would contain attachments it thinks that the rest is a text message. If you didn't have these two lines it would recognize the uuencoded attachment inside.Because before the MIME was introduced this was the dominant method to embed an inline image into a mail message. But since initially you've specified that the contents is a MIME encoded message you need to have different parts separated in MIME syntax.
So you need to either omit these lines and hope that the receiving MUA will render your attachments correctly or you need to install mutt or similar program so that it will enclose your attachments in MIME style parts into the mail.
Sorry I do lots of typos while writing :(