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

i have perfectly installed the module Mail::Internet

but still i get error of cant find a file Can't locate auto/Mail/Internet/modify.al

#!/usr/bin/perl use Mail::Internet; exit; my $head = Mail::Internet->new ; $head->add(From => 'ramanjeet@prontonetworks.com'); $head->add(To => 'sreekumar@prontonetworks.com'); $head->add(Cc => 'sreekumar@indscape.com'); $head->add(Cc => 'bhavpreet@indscape.com'); $head->add(Cc => 'paras@indscape.com'); $head->add(Subject => 'hello there'); my $body =<<END; this is just a mail dont panic nothing much Regards , raman END $mail = Mail::Internet->new(Header => $head, Body => [$body], Modify => 1); print $mail->send('sendmail');

Replies are listed 'Best First'.
Re: Sending email with Mail::Internet
by jZed (Prior) on Feb 12, 2005 at 08:02 UTC
    Change the line $head = Mail::Internet->new() to Mail::Header->new .... you are using the wrong class.
Re: Sending email with Mail::Internet
by FitTrend (Pilgrim) on Feb 12, 2005 at 20:36 UTC

    Out of curiousity, is there any particular reason your using Mail::Internet? You may want to check out MIME::Lite and Mail::Sender. It might offer more flexibility in your emailing needs.