04-14-2011
HTML treats all white space as a single space, unless <PRE> or similar tags change the formatting. <PRE> looks like plain text but allows hyperlinks, but you have to escape literal &'"<> as & (do amp first) ' " < > . If you want to have the pretty fonts and data that aligns, you need a "<TABLE><TR><TD>a1<TD>a2<TR><td>b1...</Table>". You can postprocess UNIX command output to add the necessary tags and escapes using sed or such. Web stuff is a lot easier to script in PERL, as there are libs for all sorts of web stuff, almost PERLs reason for being, but I live without it, so if you want, you can, too.
For the mechanics of sending, there are several ways, and you can see the formats from your own html mail. Many clients send a plain text version along with html mail for primitive recipient client support.
Send an HTML file as email from the command line..
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
:confused: I tryied to use the mount Command (and the msdos.utils) in Darwin 1.4 (OS X) to format a Compact Flash in DOS Format (I had already this native format but I changed it with Disk Utility in MacOS standard and the PC Card slot of a Windows 98-Laptop can't nore read the card) I want to... (1 Reply)
Discussion started by: dreamsurfer
1 Replies
2. Shell Programming and Scripting
hello all. I was hoping someone may have an idea or two.
I'm throwing together a shell script that does a lot of application and system level data collection. The idea is is you run it before/after restarting an application for later analysis. A lot of stuff is collected... resource stats,... (4 Replies)
Discussion started by: ebbtide
4 Replies
3. UNIX for Advanced & Expert Users
I use maix command to sent mails.
i can sent only plain text mails.
Unable to sent mails in html format.
while sending mails in html format, the received mail has the html code only. (17 Replies)
Discussion started by: p_prathaban
17 Replies
4. UNIX for Advanced & Expert Users
Hi,
i've build a script, 1: neon_script and the other 2:neon_mailing those to scripts i run with 3:neon_handmatig
After that i get a mail in plain text in my mail box and i want it in html format. I already tried already a several things but nothings seems to work.
Somebody got i idea how... (3 Replies)
Discussion started by: Rensen
3 Replies
5. Shell Programming and Scripting
Hi
I am formatting informix isql output(vertical) to horizontal format. Suppose I have the following content in the flat file from isql output -
item_nbr 0
usfn_label Subscriber Class
usfn_name SBCLASS
usfn_value bl5
item_nbr 1
usfn_label Switch Name
usfn_name switchName... (2 Replies)
Discussion started by: nsinha
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
7. Shell Programming and Scripting
Hi I have a file as given below:
<table border=1>
<TR><TH>Script Name</TH><TH>CVS Status</TH><TH>Script Location</TH></TR>
<TR><TD><CENTER>Work Area: /home/ustst/</CENTER></TD></TR>
<TR><TD><CENTER>admin_export.sh</CENTER></TD><TD><CENTER>Locally... (1 Reply)
Discussion started by: sudvishw
1 Replies
8. UNIX for Dummies Questions & Answers
I have written a scripts that checks the load average of server and if it is more than 5 it send a mail describing Current Load Average and High CPU/RAM processes .
The problem is I want to send these information in html form .I have done necessary coding to do the same but whenever i try to... (0 Replies)
Discussion started by: pinga123
0 Replies
9. Shell Programming and Scripting
Hi,
I have a .sh file, to email a report of our backups from a linux machine. It looks like this (minus a few bits):
echo "HELO $host.$domain"
sleep 1
echo "mail from: vdrreport@$domain"
sleep 1
echo "rcpt to:$mailto"
sleep 1
echo "data"
sleep 1
echo "subject: $host VDR-Report... (2 Replies)
Discussion started by: cognito
2 Replies
10. Shell Programming and Scripting
I have written one script which connects to MYSQL database, fires one select query and send the results over an email, if there is any Output.
But the Output which I am receiving over email is in text format. I need to get it dispalyed in tabular format to ensure better readability. Below is... (3 Replies)
Discussion started by: Sambit Sahu
3 Replies
UNRTF(GNU UnRTF 0.19.2) UNRTF(GNU UnRTF 0.19.2)
NAME
UnRTF - converts document in RTF format to other formats
SYNOPSIS
unrtf [options] [file...]
Options: [--nopict] [--html] [--text] [--vt] [--latex] [--ps] [--wpml] [--help] [--version]
DESCRIPTION
The program unrtf is a converter from Rich Text Format (RTF) to a growing number of document formats. At present it supports Hypertext
Markup Language (HTML), plain text, text with VT100 codes, LaTeX, and PostScript. All output formats except HTML are "alpha" i.e. limited
and development has just begun. However with HTML, the program supports tables, fonts, embedded images, hyperlinks, and paragraph align-
ment. Font support includes face and size changes, as well as typical attributes such as italic, bold, underlining, strikethrough, small-
caps, allcaps, expand, compress and both foreground and background colors. Images are always stored to separate files in the current
directory, or they can be ignored.
OPTIONS
--nopict
disables the automatic storing of embedded pictures to the current directory.
--html selects HTML output (default).
--text selects plain ASCII text output.
--vt selects text output with VT100 escape codes.
--latex
selects output of a LaTeX document.
--ps selects PostScript output.
--wpml selects WPML output.
--version
prints the program version.
WEBSITE
http://www.gnu.org/software/unrtf/unrtf.html
NOTES
Report bugs in the program to unrtf@gnu.ai.mit.edu.
UNRTF(GNU UnRTF 0.19.2)