>From the limited exposure I have to your lib path, it appears
as if Mail/Sendmail.pm doesn't exist.

"use Mail::Sendmail;" is looking for

   /some/path/to/Mail/Sendmail.pm

...but I don't see the Mail dir within

   /opt/MIMperl5/lib/5.00503/

Here's how mine looks:

   /usr/local/lib/perl5/site_perl/5.005/Mail/Sendmail.pm

jab

On Fri, 24 Jan 2003, Nilesh wrote:

> Date: Fri, 24 Jan 2003 14:38:04 -0800
> From: Nilesh <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: used sendmail to send an attachment
>
> 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]
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to