brentheigold has asked for the wisdom of the Perl Monks concerning the following question:
The result is that it sends the e-mail message properly, but when I open the attached file it is blank. But again I have tested the Path/Filename combination over and over again and they are correct, they point to a valid file. I would appreciate any help, thanks a lot. Brent.use MIME::Lite ... ... ... sub benchMailReport { my $msg = new MIME::Lite( From => $defaults{EMAIL_FROM}, To => $defaults{EMAIL_TO}, Subject => $defaults{EMAIL_SUBJECT}, Type =>'multipart/mixed' ); $msg->attach( Type =>'TEXT', Disposition =>'inline', Path => $defaults{REPORT_DIR}, Filename => $defaults{REPORT_FILE_NAME} ); my ($result) = $msg->send(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using MIME::Lite in perl.
by hossman (Prior) on Jul 17, 2002 at 01:34 UTC | |
|
Re: Using MIME::Lite in perl.
by kodo (Hermit) on Jul 17, 2002 at 07:14 UTC | |
by demerphq (Chancellor) on Jul 17, 2002 at 09:53 UTC | |
|
Re: Using MIME::Lite in perl.
by Cine (Friar) on Jul 17, 2002 at 00:34 UTC | |
by brentheigold (Novice) on Jul 17, 2002 at 00:38 UTC | |
by Cine (Friar) on Jul 17, 2002 at 12:27 UTC |