Hi,
Having problems with just a simple test of MIME::Lite. Here is the output:
****************************************************************************
**************************
Global symbol "$msg" requires explicit package name at mimetest.pl
line 6.
Global symbol "$msg" requires explicit package name at mimetest.pl
line 13.
Execution of mimetest.pl aborted due to compilation errors.
****************************************************************************
**************************
And here is the script:
****************************************************************************
**************************
#!/usr/local/bin/perl -w
use MIME::Lite;
use strict;
$msg = MIME::Lite->new(
From =>'[EMAIL PROTECTED]',
To =>'[EMAIL PROTECTED]',
Subject =>'Testing MIME::Lite Module.',
Data =>"Successfully sent message."
);
$msg->send;
****************************************************************************
**************************
So, what does the output message mean?
Thanks.
Alex
> ----------
> From: Bob Showalter[SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 11:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Newbie question - Can smtp send attachments?
>
> > -----Original Message-----
> > From: Yuen, Alex [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 04, 2002 11:17 AM
> > To: 'Perl Beginners'
> > Subject: Newbie question - Can smtp send attachments?
> >
> >
> > Hi,
> >
> > Is it possible to send attachments using NET::SMTP?
>
> Well, yes. But SMTP doesn't really know or care about "attachments". The
> trick is to prepare a multipart MIME message that contains the attachments
> and then send that using SMTP.
>
> >
> > Will I need to use a seperate module in my script? If so,
> > which one and how?
>
> I like MIME::Lite. Download from CPAN and read the docs. Very simple to
> use.
> It can do the sending, or you can use Net::SMTP to send the message if you
> like.
>
> --
> 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]