The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers > Answers to Frequently Asked Questions > How do I send email?
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 02-12-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,299
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]