LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: pyounge@mail.ivillage.com Date: Thu Jul 10 13:05:50 2003 Subject: MIME Lite
running a script via cron, and I get the following error message.
Am wondering if MIME lite is the problem?
thanks,
--patricia
Failed to connect to mail server: Bad file number
at
use MIME::Lite;
my $mime_msg = MIME::Lite->new(
From => 'pyounge@mail.ivillage.com',
To => 'pyounge@mail.ivillage.com',
Subject => $file,
Type => 'TEXT',
Data => ""
)
or die "Error creating MIME body: $!\n";
my $filename = "$file";
my $recommended_filename = "$file.xls";
# Attach the test file
$mime_msg->attach(
Type => 'TEXT',
Path => $filename,
Filename => $recommended_filename
)
or die "Error attaching test file: $!\n";
my $ServerName = "xxx.ivillage.com";
# Let MIME::Lite handle the Net::SMTP details
MIME::Lite->send('smtp', $ServerName);
$mime_msg->send() or die "Error sending message: $!\n";
| Navigate in group perl.macperl.modules at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |