DescriptionMail_vals.pl is a HFPM module that e-mails selected field values and environmental variable values to some given e-mail addresses.
Usage ExplanationThe fields and environmental variables are given as arguments to the program and the non-null ones are e-mailed to the recipients in a particular format. If none are given as arguments, then a whitespace-separated list of arguments are taken from the "_mail_vals" field.
A '%' prefix indicates the argument is an environmental variable and a '$' prefix means a form field argument, which is the default. In addition, a field or environmental variable pseudo-name of "all" refers to all fields or environmental variables except those that are null or whose name begins with an underscore ("_").
If no recipients are given as arguments, then the field "_mailto" is interpreted as a whitespace-separated list of e-mail recipients. If "no one" is the first (or only) recipient, then no mail is sent.
Other NotesThe current version number is 1.0.
This module is not 8-bit character clean; character 255 may be clobbered.
The is module should work on any Unix machine with sendmail.
This module can be used more than once in the pipeline.
See AlsoThe variable encoded format used to encode the fields and environmental variables and the symbol encoded format used to encode characters that might be mistaken for HTML markings.