in reply to Re: 3Re: How do I send mail from a script?
in thread How do I send mail from a script?
The use vars declares %in as a global variable (you could probably also use our). Personally, i prefer using CGI::param() instead of CGI::ReadParse() - you could construct $body like this instead:use CGI qw(:standard); use vars qw(%in); CGI::ReadParse();
instead, or if you only want the form fields listed in the @param array:$body .= param($_) . "\n" for param;
Hope this helps more. :)$body .= param($_) . "\n" for @param;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|