Hi

I have installed MIME::Lite without any errors, but when i try to run a test program, 
it gives me an error saying 
Can't locate object method "new" via package "Mime::Lite" at ./mimelite.pl line 5 
Here is the program.

#! /usr/bin/perl

use MIME::Lite;

$aem = Mime::Lite->new(     # error on this line
        From => '[EMAIL PROTECTED]',
        To => '[EMAIL PROTECTED]',
        Subject => 'Hellooooo, nurse!',
        Type => 'TEXT/Plain',
        Data => "here is a gif file you wanted"
);

$aem->attach(
        Type => 'HTML',
        Data => '<html><body>hello there </body></html>'
);

$aem->send('smtp','mail.cybercon.net');



Regards
Nitish

Reply via email to