HTML::Embperl::Mail - Sends results from Embperl via E-Mail |
HTML::Embperl::Mail - Sends results from Embperl via E-Mail
use HTML::Embperl::Mail ;
HTML::Embperl::Mail::Execute ({inputfile => 'template.epl', subject => 'Test HTML::Embperl::Mail::Execute', to => 'email@foo.org'}) ;
HTML::Embperl::Mail uses HTML::Embperl to process a page template and send the result out via EMail. Currently only plain text mails are supported. A later version may add support for HTML mails. Because of that fact, normal Embperl HTML processing is disabled per Default (see the options manpage below).
The Execute
function can handle all the parameter that HTML::Embperl::Execute
does. Addtionaly the following parameters are recognized:
address(es)
which should receive a carbon copy. Multiply addresses can
either be separated by semikolon
or given as an array ref.
address(es)
which should receive a blind carbon copy. Multiply addresses can
either be separated by semikolon
or given as an array ref.
options
are given the following are used per default:
optDisableHtmlScan, optRawInput, optKeepSpaces, optReturnError
HTML::Embperl::Execute
you can specify an array ref, which returns
all the error messages from template processing. If you don't specify
this parameter Execute
will die when an error occurs.
Some default values could be setup via environement variables
Specifies which host to use as SMTP server. Default is localhost.
Specifies which host/domain to use in the HELO/EHLO command. A reasonable default is normaly choosen by Net::SMTP, but depending on your installation it may neccessary to set it manualy.
Specifies which the email address that is used as sender. Default is www-server@server_name.
Debug setting for Net::SMTP. Default is 0.
G. Richter (richter@dev.ecos.de)
perl(1), HTML::Embperl, Net::SMTP
HTML::Embperl::Mail - Sends results from Embperl via E-Mail |