|
NAMESQLite::Work::Mail - send mail with data from an SQLite table. VERSIONversion 0.1601 SYNOPSIS use SQLite::Work::Mail;
my $obj = SQLite::Work::Mail->new(%args);
$obj->send_mail(%args);
DESCRIPTIONThis module is an expansion of SQLite::Work used for sending email populated by row(s) from a table in an SQLite database. CLASS METHODSnewmy $obj = SQLite::Work::Mail->new(
Make a new report object. Takes the same arguments as SQLite::Work::new(). OBJECT METHODSsend_email$obj->send_email(); $rep->send_email(
table=>$table,
where=>\%where,
not_where=>\%not_where,
subject=>'My Mail',
email_col=>$email_col,
email_address=>\@addresses,
mailer=>$mailer,
sort_by=>\@sort_by,
sort_reversed=>\%sort_reversed,
show=>\@show,
limit=>$limit,
page=>$page,
row_template=>$row_template,
);
Select data from a table in the database, and send each row as a separate email. Arguments are as follows (in alphabetical order):
Private Methodssend_one_emailsend_the_actual_mailREQUIRES SQLite::Work
CGI
Test::More
INSTALLATIONTo install this module, run the following commands: perl Build.PL
./Build
./Build test
./Build install
Or, if you're on a platform (like DOS or Windows) that doesn't like the "./" notation, you can do this: perl Build.PL perl Build perl Build test perl Build install In order to install somewhere other than the default, such as in a directory under your home directory, like "/home/fred/perl" go perl Build.PL --install_base /home/fred/perl as the first step instead. This will install the files underneath /home/fred/perl. You will then need to make sure that you alter the PERL5LIB variable to find the modules, and the PATH variable to find the script. Therefore you will need to change: your path, to include /home/fred/perl/script (where the script will be) PATH=/home/fred/perl/script:${PATH}
the PERL5LIB variable to add /home/fred/perl/lib PERL5LIB=/home/fred/perl/lib:${PERL5LIB}
SEE ALSOperl(1). BUGSPlease report any bugs or feature requests to the author. AUTHOR Kathryn Andersen (RUBYKAT)
perlkat AT katspace dot com
http://www.katspace.com
COPYRIGHT AND LICENCECopyright (c) 2005 by Kathryn Andersen This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|