Results 1 to 5 of 5
Hi all,
I am new in Perl language. I wrote a perl script to send an email notification to users by using:
use MIME::Lite;
However, i get the error:
Can't ...
- 11-18-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 9
[Solved] Can't locate MIME::Lite.pm in @INC
Hi all,
I am new in Perl language. I wrote a perl script to send an email notification to users by using:
use MIME::Lite;
However, i get the error:
Can't locate MIME Lite.pm in @INC(@INC contains: /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl .) at email.pl line 5.
BEGIN failed--compilation aborted at email.pl line 5.
Below is the simplify version for my code. What 's wrong with my coding?
Code:my $message = MIME::Lite->new( To => 'xxx@mail.com', Subject => 'message', Data => 'Message body' ); $message->send();
- 11-18-2009 #2
- 11-19-2009 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 9
I entered
but i get:Code:cpan MIME::Lite
bash: cpan: command not found
- 11-19-2009 #4Just Joined!
- Join Date
- Nov 2009
- Posts
- 9
The error is fixed after i installed the MIME::Lite module.
Download the MIME::Lite module.
Install the module as follows:
perl Makefile.PL
make
make test
make install
- 11-19-2009 #5


Reply With Quote