Subject: | |
From: | |
Reply To: | |
Date: | Wed, 23 Sep 1998 18:38:37 -0400 |
Content-Type: | Text/Plain |
Parts/Attachments: |
|
|
In <[log in to unmask]> [log in to unmask] writes:
> I've got some reports that are over 80 characters wide that I would like
> to automatically send via e-mail. Is there any tricks to keep sendmail &
> email readers from breaking up lines? Is there any easy way to turn them
> into attachments?
Regardless of the program you use to send the files, the problem you'll
encounter is how the receiving client handles the output.
By default, text/plain attachments are often wrapped unmercilessly by gui
mail clients, while non-gui clients generally play-it-as-they-see-it. In
addition, gui clients like to display messages in proportional fonts. While
this is ok for most messages, it doesn't bode well for reports with columns
of text that need to line up, and especially for text that's wider than the
basic terminal window (supposedly 72 characters per line is the standard to
count on).
So, whatcha need to do...
1) Gotta use MIME. (Sorry, but old-fashioned non-MIME compatible mailers will
never deal with this kind of data well or consistently)
2) Label the attachment as "text/html"
3) Precede the text with at least a <html><body><pre>
Or <plug> NetMail users need only use a filecode "2133" on the report file,
imbed the appropriate html tags up front, and attach the file as normal.
</plug>
This will cause the reports to display "normally" (at least no worse than
normal) for non-MIME/character-based mail readers, and for those GUI readers,
the text will be displayed in a non-proportional font (all your columns will
line up) *and* lines won't be arbitrarily broken (you will get a horizontal
scroll bar if the report is too wide to display at once).
HTH,
Chris Bartram
(remove "nospam" for personal replies)
|
|
|