Let me explain better, the following output comes out fine, and is displayed ok, if the user has his email set to HTML format. I am trying to cater for people who have not done this.
When i rewrite the code, to ensure the variable $CLIENT_CHECK is shown in column 45 spaces, it does not work
Can you help so i get something like this
Hi,
I have generated a report that contains many columns and since I need ir in excel format.. I just renamed te file to excel as follows:
cp vijay.txt vijay.xls
I have just attached this spreadsheet in the mail and I am getting it to my mail id. But, in the output excel, the columns that... (10 Replies)
Hello, there is a problem when using sendmail to certain destinations, basically the recipient will reject the incoming message because the user@local.domain.com is used as the sender (Return-Path), they would verify local.domain.com is not a valid DNS record which is true because it is a local... (11 Replies)
Hi
I have a script
#!/bin/sh
# email addresses to send results to, separated by a space
EMAILS="xxxx.yyyy@yahoo.com"
SUBJECT="MySQL reporting "
DISK_DATA_USAGE=/home/aaaa/usaage.txt
mysql YYYYYYYY -e " select 100*sum(max_data_length) as disk_usage_pct from xxxxxx;" >... (2 Replies)
Hello,
I'm a bit stumped, for some reason when using AWK 'print' is not printing the entire date/line.
awk '{print "Ticket #: " $1}
{print "Queue : " $2}
{print "Recieved : " $3}
{print "AP Date : " $4}
{print "Circuit ID : " $5}
{print... (4 Replies)
Hello Folks,
Monitor took a crap on me so I bought a new flat screen. Im running Ubuntu 12 recieving an invalid format after the GUI login screen. How do I go about trying to change the resolution. FYI old monitor blew smoke so reconnecting it is not an option. From I understand their is no... (3 Replies)
I would like to get the below in YYYY MMDD format,
Last date of the week
Last date of the month
Last date of the year
And then compare d_date with the above if it matches it has to send some email.
while read email_address; do
mail -s "$subject"... (1 Reply)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Hi All,
I 'm trying to find a way to send my contents of a file as a body of email in the format shown below. However, the format of the contents are messed up when I receive the email.
---------------------------------------------------------------------------------------------------------... (2 Replies)
I have tried below email method and i am getting every thing in single line . i have put echo to provide space, but it is not helping
my code
(
echo "From: $FROM"
echo "To: $MAILTO"
echo "CC: $CC"
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo 'Content-Type: multipart/mixed;... (6 Replies)
Hi
I have script to collect file system usage statistics from few remote unix hosts and email . On the UNIX system the column spacing is fine but the email output is not aligned properly. Any tips to fix this ? (1 Reply)
Discussion started by: new2prog
1 Replies
LEARN ABOUT DEBIAN
html::formatter
HTML::Formatter(3pm) User Contributed Perl Documentation HTML::Formatter(3pm)NAME
HTML::Formatter - Base class for HTML formatters
VERSION
version 2.10
SYNOPSIS
use HTML::FormatSomething;
my $infile = "whatever.html";
my $outfile = "whatever.file";
open OUT, ">$outfile"
or die "Can't write-open $outfile: $!
";
print OUT HTML::FormatSomething->format_file(
$infile,
'option1' => 'value1',
'option2' => 'value2',
...
);
close(OUT);
DESCRIPTION
HTML::Formatter is a base class for classes that take HTML and format it to some output format. When you take an object of such a base
class and call "$formatter->format( $tree )" with an HTML::TreeBuilder (or HTML::Element) object, they return the
HTML formatters are able to format a HTML syntax tree into various printable formats. Different formatters produce output for different
output media. Common for all formatters are that they will return the formatted output when the format() method is called. The format()
method takes a HTML::Element object (usually the HTML::TreeBuilder root object) as parameter.
METHODS
new
my $formatter = FormatterClass->new(
option1 => value1, option2 => value2, ...
);
This creates a new formatter object with the given options.
format_file
format_from_file
$string = FormatterClass->format_file(
$html_source,
option1 => value1, option2 => value2, ...
);
Return a string consisting of the result of using the given class to format the given HTML file according to the given (optional) options.
Internally it calls "SomeClass->new( ... )->format( ... )" on a new HTML::TreeBuilder object based on the given HTML file.
format_string
format_from_string
$string = FormatterClass->format_string(
$html_source,
option1 => value1, option2 => value2, ...
);
Return a string consisting of the result of using the given class to format the given HTML source according to the given (optional)
options. Internally it calls "SomeClass->new( ... )->format( ... )" on a new HTML::TreeBuilder object based on the given source.
format
my $render_string = $formatter->format( $html_tree_object );
This renders the given HTML object according to the options set for $formatter.
After you've used a particular formatter object to format a particular HTML tree object, you probably should not use either again.
SEE ALSO
The three specific formatters:-
HTML::FormatText
Format HTML into plain text
HTML::FormatPS
Format HTML into postscript
HTML::FormatRTF
Format HTML into Rich Text Format
Also the HTML manipulation libraries used - HTML::TreeBuilder, HTML::Element and HTML::Tree
INSTALLATION
See perlmodinstall for information and options on installing Perl modules.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Format
<http://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Format>.
AVAILABILITY
The project homepage is http://search.cpan.org/dist/HTML-Format <http://search.cpan.org/dist/HTML-Format>.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to
find a CPAN site near you, or see http://search.cpan.org/dist/HTML-Format/ <http://search.cpan.org/dist/HTML-Format/>.
The development version lives at http://github.com/nigelm/html-format <http://github.com/nigelm/html-format> and may be cloned from
git://github.com/nigelm/html-format.git <git://github.com/nigelm/html-format.git>. Instead of sending patches, please fork this project
using the standard git and github infrastructure.
AUTHORS
o Nigel Metheringham <nigelm@cpan.org>
o Sean M Burke <sburke@cpan.org>
o Gisle Aas <gisle@ActiveState.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Nigel Metheringham, 2002-2005 Sean M Burke, 1999-2002 Gisle Aas.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.12.4 2011-07-26 HTML::Formatter(3pm)