Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Sending email with Mail::Internet

by rjsaulakh (Beadle)
on Feb 12, 2005 at 07:49 UTC ( #430378=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://430378]
Approved by holli
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2022-01-27 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (70 votes). Check out past polls.

    Notices?