Fellow Monks

Im having the following error, I know I can fix it my self but I cant get to the correct files I need till Monday, so just out of interest, I was wondering if anyone had any suggestions:

[Sat May 20 18:24:48 2006] [error] Mail/Template.pm did not return a t +rue value at /home/barrycar/public_html/jonbaglo/pl/perllib/Base.pm l +ine 11.\nBEGIN failed--compilation aborted at /home/barrycar/public_h +tml/jonbaglo/pl/perllib/Base.pm line 11.\nCompilation failed in requi +re at /usr/lib/perl5/site_perl/5.8.6/Apache/Reload.pm line 132.\n

package Mail::Template; use strict; use base qw(Template::Base); use Config; use Mail::Sendmail qw(sendmail); use Template::Base; use Template::Config; our $HOST = $Config::MAIL_HOST; our $PORT = $Config::MAIL_PORT; sub _init { my ($self, $config) = @_; $self->{HOST} = $config->{HOST} || $HOST; $self->{PORT} = $config->{PORT} || $PORT; # Set up a Template::Service instance $self->{SERVICE} = $config->{SERVICE} || Template::Config->service($config) || return $self->error(Template::Config->error); return $self; } sub process { my ($self, $input, $vars, $to, $from, $subject) = @_; my ($output, $mail, $error); my $service = $self->{SERVICE}; # return with an error if no recipient has been specified return $self->error("No recipient specified") unless $to; # process the template $output = $service->process($input, $vars); # send the mail and return or return with an error if (defined $output) { $mail->{To} = $to; $mail->{From} = $from; $mail->{Subject} = $subject; $mail->{Message} = $output; $mail->{Server} = $HOST; $mail->{Port} = $PORT; if (sendmail(%$mail)) { return 1; } else { return $self->error($Mail::Sendmail::error); } } else { return $self->error($service->error); } }
Barry Carlyon barry@barrycarlyon.co.uk

In reply to Mail/Template.pm, what is true value? by barrycarlyon

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.