in reply to Re: Re: Re: Software Error: Close.pm
in thread Software Error: Close.pm
syntax error at enquiry02.pl line 25, near "$mailer open"
#!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); use Mail::Mailer; my $query = CGI->new(); my @param = qw( Title Name Position School Address Suburb State PCode Email Tel Fax Comments ); my $mailer = new Mail::Mailer; my %headers = ( To => 'test@tester.com', From => 'test', Subject => 'test send stuff', ); $mailer open(\%headers); my $body = ( print $mailer $query->param('Title'), print $mailer $query->param('Name'), print $mailer $query->param('Position'), print $mailer $query->param('School'), print $mailer $query->param('Address'), print $mailer $query->param('Suburb'), print $mailer $query->param('State'), print $mailer $query->param('PCode'), print $mailer $query->param('Email'), print $mailer $query->param('Tel'), print $mailer $query->param('Fax'), print $mailer $query->param('Comments'), ); print $mailer $body; $mailer->close; print $query->redirect('http://www.travancoresch.vic.edu.au/developmen +t/reply02.html');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Software Error: Close.pm
by bobn (Chaplain) on Aug 22, 2003 at 04:49 UTC |