One way to do this is to manually insert the RFC822 header infomation that denotes the attachment and mime-type of the attachment. For example, this is part of the header that denotes an attachment:
Quote:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_NextPart_000_000D_01C0946C.FF6A28A0"
The details are in RFC822, as I recall.
BTW, some mailers use resource files as a way to include header information (for example ~elm/elmheaders) ; some use other methods. There are numerous ways to get RFC822 header information into your files before mailing. Depending on the mailer you chose, the methods could be different.
The way I used to do this was to manually create the header in a script and then append the message test or attachment and send, keeping the header template for the next message, etc.
[Edited by Neo on 02-12-2001 at 03:53 PM]