Gorby has asked for the wisdom of the Perl Monks concerning the following question:

Hello Wise Monks,

I'm using active perl for windows and I'd like to use Mime Lite. Unfortunately, ActiveState wants to charge me USD999 per year to use it. Is there a way I can use Mime Lite for free? Should I set up a pc with Ubuntu, install perl there and use Mime Lite for free on that machine?

Thanks in advance

Replies are listed 'Best First'.
Re: Mime Lite
by kcott (Archbishop) on Oct 11, 2013 at 03:36 UTC

    G'day Gorby,

    Firstly, it's important to use the correct name. I knew Mime Lite wasn't a module name. I tried Mime::Lite - that doesn't exist either. Do you mean MIME::Lite? If so, read the start of its documentation:

    "WAIT!
    MIME::Lite is not recommended by its current maintainer. There are a number of alternatives, ..."

    Perhaps you'll want to investigate some of those alternatives.

    I don't have ActivePerl. I suspect you've misinterpreted that price: you'll probably get more than 12 months use of a single module for $999. Anyway, I'm sure another monk who does use it, can provide accurate advice on that.

    Both the cpan utility and the CPAN module are bundled with the Perl distribution. Try cpan from the command line; if that doesn't work, try perl -MCPAN -e shell. If one of those gives you a prompt, go ahead and try to install your chosen module:

    cpan[1]> install Module::Name

    -- Ken

Re: Mime Lite (misunderstandings)
by Anonymous Monk on Oct 11, 2013 at 03:09 UTC

      Thanks for the advice re strawberry perl. I installed it and ran the perl program but got this error:

      SMTP Failed to connect to mail server: at perl_email_sender.cgi line 81.

      Here's my code:

      $msg = MIME::Lite->new( From => 'noreply@loadmena.com', To => 'rvn@jade.com.ph', Subject => 'Test Subject', Type => 'multipart/mixed', ); $msg->attach( Type => 'TEXT', Data => "Test Email.", ); $msg->send;

      what am I missing?

        I installed it and ran the perl program but got this error: what am I missing?

        Turn on debugging, get a better error message (other than "didn't work"), and then google message if it isn't obvious

Re: Mime Lite
by ww (Archbishop) on Oct 11, 2013 at 11:13 UTC
    At least for 5.016 (the free or so-called "Community edition") and earlier, AS does NOT charge for use of MIME::Lite.
    C:\>ppm search MIME::Lite Downloading ActiveState Package Repository packlist...done ... 1: MIME-Lite unknown Version: 3.029 Released: 2012-08-17 Author: Ricardo SIGNES <rjbs@cpan.org> Provide: MIME::Lite version 3.029 Require: Email::Date::Format version 1 or better Require: File::Basename Require: File::Spec Repo: ActiveState Package Repository # <--- Link: http://ppm4.activestate.com/MSWin32-x86/5.16/1602/R/RJ/RJBS/M +IME-Lite-3.029.ppmx CPAN: http://search.cpan.org/dist/MIME-Lite-3.029/ C:\>ppm update MIME::Lite Downloading MIME-Lite-3.029...done Downloading Email-Date-Format-1.004...done Unpacking MIME-Lite-3.029...done Unpacking Email-Date-Format-1.004...done Generating HTML for MIME-Lite-3.029...done Generating HTML for Email-Date-Format-1.004...done Updating files in site area...done 6 files installed C:\>