Mail(3pm)
π Mail(3pm) β the manual page, but make it a group chat
okay bestie, so this is the page for Embperl::Mail β the manual's literally called Mail(3pm) and it's filed under Perl's user-contributed docs. Let me put you on. π«Ά
β¨ NAME β¨
Embperl::Mail β Sends results from Embperl via E-Mail π
π SYNOPSIS π
use Embperl::Mail ;
Embperl::Mail::Execute ({inputfile => 'template.epl',
subject => 'Test Embperl::Mail::Execute',
to => 'email@foo.org'}) ;
πΈ DESCRIPTION πΈ
So Embperl::Mail uses Embperl to process a page template, and then it sends the result out via EMail. That's the whole plot. β¨
Right now, only plain text mails are supported. A later version may add support for HTML mails β so watch this space, no promises. And because of that fact, normal Embperl HTML processing is disabled per Default (check the options down below, bestie).
π Execute
The "Execute" function can handle all the parameters that "Embperl::Execute" does. On top of that, these additional parameters are recognized:
fromβ gives the sender e-mail address.toβ gives the recipient address(es). Multiply addresses can either be separated by semikolon or given as an array ref. (yes, "multiply" β that's what the page says, we don't fix, we report π)ccβ gives the recipient address(es) which should receive a carbon copy. Multiply addresses can either be separated by semikolon or given as an array ref.bccβ gives the recipient address(es) which should receive a blind carbon copy. Multiply addresses can either be separated by semikolon or given as an array ref.subjectβ gives the subject line.reply-toβ the given address is insert as reply address.mailheadersβ Array ref of additional mail headers.headerencoding(2.0b9+) β TellsEmbperl::Mailwhich charset definition to include in any header that contains character code 128-255 and therefore needs encoding. Defaults toiso-8859-1. Pass empty string to turn encoding of header fields of. πmailhostβ Specifies which host to use as SMTP server. Default islocalhost.mailheloβ Specifies which host/domain to use in theHELO/EHLOcommand. A reasonable default is normally chosen byNet::SMTP, but depending on your installation it may necessary to set it manualy.maildebugβ Set to1to enable debugging of mail transfer.optionsβ If no"options"are given the following are used per default:optDisableHtmlScan,optRawInput,optKeepSpaces,optReturnError.escmodeβ In contrast to normal Embperl escmode defaults to zero (no escape). π§errorsβ As in"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. π
π¦ Configuration
Some default values could be setup via environment variables.
IMPORTANT: For nowEmbperl::Maildoes not honour the Embperl configuration directives in yourhttpd.conf. Only values set via the environment are accepted (e.g. viaSetEnvorPerlSetEnv). Periodt. π
π EMBPERL_MAILHOST
Specifies which host to use as SMTP server. Default is localhost.
π EMBPERL_MAILHELO
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.
π EMBPERL_MAILFROM
Specifies which the email address that is used as sender. Default is www-server@server_name.
π EMBPERL_MAILDEBUG
Debug setting for Net::SMTP. Default is 0.
π Author
G. Richter (richter at embperl dot org)
π₯ See Also
perl(1), Embperl, Net::SMTP
and that's the whole page, bestie π«Ά this doc is perl v5.34.0, dated 2022-02-06, and it lives under Mail(3pm) in the user-contributed Perl docs. ate and left no crumbs π
β¨
π¦ where this page comes from
- ubuntu jammy: libembperl-perl 2.5.0-16build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms