Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-67

Create e-mail attachment using an OutputStream

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 1.0
    • 1.1
    • None

    Description

      I'm using POI to create .xls files in memory that I want to send as e-mail attachments. I now have to first save the created POI workbooks, then attach the files to the e-mail and then have a mechanism to clean up the temporary files after the mail was sent. The POI HSSFWorkbook has a method:

      write(java.io.OutputStream stream)

      If this operation could write directly into the e-mail attachment, it would increase performance and require a lot less overhead to manage the temporary files.

      I am sure there are plenty other examples of attachments being created as files in memory that could be sent directly without having to create it as an actual file first.

      Attachments

        Activity

          People

            bens Ben Speakmon
            cpgerber Charl Gerber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: