Hello Perl monks,

I have recently made a script to send form values to an email but my web server does not have the module that I require and I cannot seem to find it on CPAN or google search.

Does anyone have any ideas where I could find this module or why it is giving me this error?

Here is the Error:
Software error:
[Fri Aug 22 09:53:15 2003] enquiry02.pl:
 Can't locate Mail/Mailer/close.pm in @INC
 (@INC contains:
    /usr/libdata/perl/5.00503/mach
    /usr/libdata/perl/5.00503
    /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.005
  )
 at (eval 5) line 3.

And here is my code:

#!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); use Mail::Mailer (qw/close/); my $query = CGI->new(); my @param = qw( Title Name Position School Address Suburb State PCode Email Tel Fax Comments ); my $mailer = Mail::Mailer->new; $mailer->open({ To => 'test@tester.com, From => 'tester', Subject => 'results of submit', }); $mailer = $query->param('Title'); $mailer = $query->param('Name'); $mailer = $query->param('Position'); $mailer = $query->param('School'); $mailer = $query->param('Address'); $mailer = $query->param('Suburb'); $mailer = $query->param('State'); $mailer = $query->param('PCode'); $mailer = $query->param('Email'); $mailer = $query->param('Tel'); $mailer = $query->param('Fax'); $mailer = $query->param('Comments'); $mailer->close; print $query->redirect('http://www.travancoresch.vic.edu.au/developmen +t/reply02.html');

Thanks in advance to any perl monks that help. Cheers.

edited by ybiC: HTML-encode square brackets in error message


In reply to Software Error: Close.pm by Nickd_69

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.