I'm using the following code, for a simple cgi routine, and would like the ability to send the contents via E-Mail.
Is there a simple way to do that?#!/perl/bin/perl.exe -T use CGI; use strict; use warnings; my $q = new CGI; my $company = $q->param('company'); my $last = $q->param('last'); my $first = $q->param('first'); my $serial = $q->param('serial'); my $meter = $q->param('meter'); print $q->header("text/HTML"); print <<WEB_PAGE; <HTML> <HEAD> <TITLE>Test CGI</TITLE> </HEAD> <BODY> <H3>You Entered</H3><BR> <PRE> WEB_PAGE &INFO; print "\<\/PRE\>\n"; print "\<\/BODY\>\n"; sub INFO { print "COMPANY: $company\n"; print "LAST: $last\n"; print "FIRST: $first\n"; print "SERIAL: $serial\n"; print "METER: $meter\n"; }
Thanks
In reply to sending E-Mail via CGI by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |