I have written a routine that uses the Winsock control to send E-Mails with file attachments (using MIME v1.0 format).

This all works fine and when I read the E-Mail I can see the message body and the attachment OK. However, the attachment is stripped of all character 10's (linefeeds). I have set the 'Content-Type' to application/octet-stream and proved the linefeeds are being written out.

Can anybody help!

Regards

Steve