I'm trying to build a little report generator for our larger reports that will get forked off from the main application so it can crunch away at the data without holding up the rest of the app. Forking off the process is not the problem I'm looking at though...

What I want to do is send the report as a .tab or .csv email attachment to whoever runs the report. I've been looking at this 'E-mail with Attachments' using Mime::Lite on TPJ, but I want to avoid writing the report out to a file on the server's hard disk before emailing it off ...

There's gotta be a way to do this. If anyone tells me I owe you a coke!



-mr.dunstan

In reply to Mail with attachments, but w/o writing out a file first by mr.dunstan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.