May 17

Sometimes you may prefer to send information as an e-mail attachment rather
than as an e-mail message. For example, you may want to send the 30-page
service contract to all your customers as an attachment, rather than as a
30-page e-mail message.
To send a message as an attachment, you send a mail header instructing that
the e-mail be sent as an attachment. The header is as follows:
Content-disposition: attachment; filename=test.txt
The header tells the e-mail software to send the message as an attachment
with the filename of test.txt. The following example shows how to send a
short message as an attachment, although it’s very unlikely that you’d actually
want to do this: Selengkapnya »