I have download Sendmail module and installed. I also copied Sendmail.pm in my lib path as follows: /opt/MIMperl5/lib/5.00503/sun4-solaris/ops.pm /opt/MIMperl5/lib/5.00503/sun4-solaris/re.pm /opt/MIMperl5/lib/5.00503/sun4-solaris/Sendmail.pm /opt/MIMperl5/lib/5.00503/vars.pm /opt/MIMperl5/lib/5.00503/Sendmail.pm
Now when i run my script,i still get [usr@server] perl [28]./mail.pl Can't locate Mail/Sendmail.pm in @INC (@INC contains: /opt/MIMperl5/lib/5.00503/sun4-solaris /opt/MIMperl5/lib/5.00503 /opt/MIMperl5/lib/site_perl/5.005/sun4-solaris /opt/MIMperl5/lib/site_perl/5.005 .) at ./mail.pl line 2. BEGIN failed--compilation aborted at ./mail.pl line 2. [usr@server] perl [29] My Script is as follows #! /usr/bin/perl use Mail::Sendmail; %mail = ( To => '[EMAIL PROTECTED]', From => '[EMAIL PROTECTED]', Message => "This is a very short message" ); sendmail(%mail) or die $Mail::Sendmail::error; print "OK. Log says:\n", $Mail::Sendmail::log; Thanks! Nilesh Shirodkar "Jerry Preston" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I use $mailprog = '/usr/lib/sendmail'; to send e-mail with. Can I use > this to send an attachment? > > Thanks, > > Jerry > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]