Perl: the Markov chain saw | |
PerlMonks |
Mime::Lite attach issueby jimbus (Friar) |
on Apr 05, 2007 at 19:10 UTC ( [id://608534]=perlquestion: print w/replies, xml ) | Need Help?? |
jimbus has asked for the wisdom of the Perl Monks concerning the following question: Update: This was solved with bart's help. I wasn't closing the file after I generated it. Thanks bart! Hello, I've got a script that generates an Excel file using Spreadsheet::WriteExcel as well as some graphs with GD::Graph and tries to email them out using Mime:Lite. The Excel document creates correctly, I can FTP it over and open it correctly, but the document attached to the email, though, is empty. Outlook claims the attachment is 64kb, but when I save it to disk, it is 0kb. The graphs all display in-line and the CSVs I'd been sending just as attachments before the requirements changed worked.
Above is the relavent code... if anyone has any ideas why I can't email this, please let me know... BTW, ls -l on the Path for the offending item shows a file sized 21504. --Jimbus aka Jim Babcock Wireless Data Engineer and Geek Wannabe jim-dot-babcock-at-usa-dot-com
Back to
Seekers of Perl Wisdom
|
|