develooper Front page | perl.pep | Postings from May 2010

Re: I do not understand the error CGI that I get CGI using Email::Simple

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
May 4, 2010 04:41
Subject:
Re: I do not understand the error CGI that I get CGI using Email::Simple
Message ID:
20100504114126.GA4641@cancer.codesimply.com
* fakessh <fakessh@fakessh.eu> [2010-05-03T20:55:20]
> click error
> 
> 
> when I am not MIME:: Lite 
> I find myself with a CGI error in httpd and browser. 
> I do not understand why

What's the error?

> > package PerlWebmail::Message;
> > use base qw(MIME::Lite);
> > use base qw(Email::Simple);

Extending both those classes at once seems doomed to fail a lot.

> > sub mail 
> > {
> >     my ($self, $message) = @_;
> >     my $obj = Email::Simple->new($message);
> >     print $obj->as_string;
> >     $Self->new;
> > }

You said $Self instead of $self.

-- 
rjbs

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About