10-19-2008
While you can certainly place an HTML document wrapper around the plain text output from your scripts, this will be nothing more than the plain text you receive now.
If you want various elements in your reports to be HTML, you must output the HTML tags necessary for the desired formatting. If your report output is consistent, you may be able to post-process the output and insert appropriate HTML tags, wrapping it all up in the proper < html > ... < /html > tags, etc.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi guys,
am required to prepare a report and mail it, to make it more appealing :p i wish to have content of mail in rich text format i.e html type
with mailx how to specify the content type of mail body as html?
Thanks in advance!!!
rishi (2 Replies)
Discussion started by: RishiPahuja
2 Replies
2. UNIX for Dummies Questions & Answers
hi,
I am new to unix.
I need send html content as a mail from my sun-solaris2.6 work station. When I tried that the recipient gets it as html code with all the tags.
any solutions?
thanx in advance (2 Replies)
Discussion started by: gmchoudary
2 Replies
3. Shell Programming and Scripting
Hi
I am new to unix and scripting.I am trying to send a html file as an attachment.
SUBJECT="Type of Exceptions in Application"
TO=Sushovan.Samals@gmail.com
SPOOLFILE=/data/reg/tlogs/Monitor.html
#echo "Send the E-mail message..."
uuencode $SPOOLFILE $SPOOLFILE | mailx -s "$SUBJECT" $TO... (2 Replies)
Discussion started by: sushovan
2 Replies
4. 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
5. 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
6. 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... (7 Replies)
Discussion started by: pinga123
7 Replies
7. Shell Programming and Scripting
Hi,
Can anyone tell me how to mail a html file in unix?
I have a HTML file which contains a table structure, and i want this table to be created in the mail body and mail it.
Does anyone have any suggestions. (3 Replies)
Discussion started by: rocky88
3 Replies
8. Shell Programming and Scripting
Hi i need to send mail from my Unix server i used the below code.
From: TTS.OO.Monitoring.Operations
Subject: Error
X-Mailer: htmlmail 1.0
Mime-Version: 1.0
Content-Type: text/html; charset=US-ASCII
<HTML><head><style type='text/css'>
table.altrowstable { font-family:... (6 Replies)
Discussion started by: mohanalakshmi
6 Replies
9. Shell Programming and Scripting
Hi Everyone,
I am facing problems in sending html mail with attachemnt.
I will able to send mail with attachment (plain text ) using mailx -s and uuencode command and
also html mail without attachment using sendmail option.
However I am not able to send html mail along with attachment.Either... (2 Replies)
Discussion started by: karthik adiga
2 Replies
10. Shell Programming and Scripting
Hi,
I am using the below code:
#!/bin/ksh
SUBJ="Send mail from Unix with file attachments"
TO=sudha.viswanathan@jpmorgan.com
CC=sudha.viswanathan@jpmorgan.com
(
cat << !
To : ${TO}
Subject : ${SUBJ}
Cc : ${CC}
!
cat << !
MIME-Version: 1.0
Content-Type: text/html
`cat... (1 Reply)
Discussion started by: sudvishw
1 Replies
LEARN ABOUT DEBIAN
www::topica
WWW::Topica(3pm) User Contributed Perl Documentation WWW::Topica(3pm)
NAME
WWW::Topica - read emails from a Topica mailing list
SYNOPSIS
my $topica = WWW::Topica->new( list => 'mylist', login => 'mylogin', password => 'mypass' );
while (my $mail = $topica->mail) {
Email::LocalDelivery->deliver($mail, 'mylist.mbox');
}
DESCRIPTION
This module screen scrapes the Topica website and fetches back RFC822 text representations of all the mails posted to a given list. Where
possible it fills in the from, to and date fields. It should be noted that in some cases it's impossible to get both the sender name and
their email address.
METHODS
new
Takes three options, the list name, your login account and your password;
You can also pass in "local" and "debug". "debug" will print out various debugging messages whereas "local" will use local files for
testing. "local" automatically sets "debug" to 1 unless debug is explicitly set to 0.
Furthermore if you pass in a "first" option the parsing will start from that offset. A "last" lets you set an upper bound.
mail
Returns a mail at a time
Logs in automatically.
login
Logs in to Topica and stashes the cookie.
Called automatically by the first call to "mail".
Builds the loader automatically.
fetch_index <offset>
Retrieve the html of the index page with the given offset.
fetch_mail <id>
Retrieve the html of a the message page with the given id.
fetch_reply <id> <eto>
Retrieve the html of a the reply page with the given id and eto.
build_rfc822 <WWW::Topic::Mail> <WWW::Topica::Reply>
Given a "WWW::Topic::Mail" object and a "WWW::Topica::Reply" object build up the text of an RFC822 compliant email.
build_loader
Set up the LWP::UserAgent object used to fetch pages.
fetch_page <url>
Utility function for getting a page with various niceties.
AUTHOR
Simon Wistow <simon@thegestalt.org>
COPYRIGHT
Copyright (c) 2004, Simon Wistow
perl v5.10.1 2006-01-03 WWW::Topica(3pm)