Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MIME::LITE not sending email

Status
Not open for further replies.

jcarrott

Programmer
May 28, 2009
130
US
I have a program HISEMAIL

Code:
#!/usr/lpp/oracle/product/10.2/perl/bin/perl

use MIME::Lite;

$LAWDIR="/usr/lawson/lawson";

$rc=system("cd $LAWDIR/print/lawhht/hishourly/3");

$msg = MIME::Lite->new(
    From    => 'IC500@ochsner.org',
    To      => 'jcarrott@ochsner.org',
    Subject => 're: HISHOURLY report',
    Type    => 'multipart/mixed',
    Content => 'Please review for errors',
    );

$msg->attach(
    Type     => 'TEXT',
    Filename => 'IC500.pdf',
    );

MIME::Lite->send('smtp', 'mail.ochsner.org', Timeout => 60);
$msg->send();

The last line ($msg->send(); is line number 38. The error I get is;

no data in this part at HISEMAIL line 38

I have no idea why there is no data. Can anybody see what I did wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top