HP3000-L Archives

February 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chris Bartram <[log in to unmask]>
Reply To:
Date:
Mon, 16 Feb 1998 16:41:44 -0500
Content-Type:
Text/Plain
Parts/Attachments:
Text/Plain (41 lines)
 In <[log in to unmask]> [log in to unmask] writes:

> I trying to send a file as an attachment. Here is a little bit of code
> (Pascal) that sends a file as part of the message text. My question is:
> What do I need to add to the code to send the file as an attachment? Or
> can some point me to documentation on the net, related to doing this
> type of programming?

To make a message part an "attachment" (to modern mailers at least) you need
to add MIME headers. At a minimum
  Mime-Version: 1.0
in the main headers, and a
  Content-Type:
header, probably indicating multipart/mixed and a boundary string.

Then, around each attachment (i.e. after the boundary string) you add
headers describing that attachment; Content-Type:, Content-Transfer-Encoding:
(if needed) and possibly Content-Disposition: attachment (vs inline -
depending on how you want to recommend it be presented).

For all the MIME standards (RFCs), the best place to dig them up in on the
Internet Mail Consortium's web site (www.imc.org). They keep online indexes
of all the relevant RFCs, organized by categories.

If you'd like to see some samples, let me know. We can send you some sample
messages from our 3000 with various types of attachments.

            -Chris Bartram


______________________/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
  Chris Bartram        Sales (US):   800 Net-Mail    Fax:+1 703 451-3720
   ______                         +1 703 569-9189    mailto:[log in to unmask]
  /__ |  \__________   Sales (Europe):+44(1480)414131 Fax:+44(1480)414134
 /  / | / ________     Sales (Pacific):+61 3 9489 8216 Fax:+61 3 9482 5124
|  /_ |<  ______       Tech Support:+1 703 569-9189  Fax:+1 703 451-3720
 \ __)| \ ___          mailto:support at 3k.com       Me: rcb at 3k.com
  \______/Associates,  6901 Old Keene Mill Rd Suite 500 Springfield VA 22150
_________________Inc._/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
Gopher: gopher.3k.com   Anon-FTP: ftp.3k.com  WWW: http://www.3k.com/

ATOM RSS1 RSS2