| Mail(3pm) | User Contributed Perl Documentation | Mail(3pm) |
Embperl::Mail - Sends results from Embperl via E-Mail
use Embperl::Mail ;
Embperl::Mail::Execute ({inputfile => 'template.epl',
subject => 'Test Embperl::Mail::Execute',
to => 'email@foo.org'}) ;
Embperl::Mail uses 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 options below).
The "Execute" function can handle all the parameter that "Embperl::Execute" does. Addtionaly the following parameters are recognized:
Some default values could be setup via environment variables.
IMPORTANT: For now Embperl::Mail does not honour the Embperl configuration directives in your httpd.conf. Only values set via the environment are accepted (e.g. via SetEnv or PerlSetEnv).
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 normally chosen by Net::SMTP, but depending on your installation it may necessary 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 at embperl dot org)
perl(1), Embperl, Net::SMTP
| 2023-01-22 | perl v5.36.0 |