Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 82736 invoked from network); 7 Aug 2007 06:24:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 06:24:22 -0000 Received: (qmail 76405 invoked by uid 500); 7 Aug 2007 06:24:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 75872 invoked by uid 500); 7 Aug 2007 06:24:19 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 75862 invoked by uid 99); 7 Aug 2007 06:24:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 23:24:19 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 06:24:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3592F7141E2 for ; Mon, 6 Aug 2007 23:23:59 -0700 (PDT) Message-ID: <476099.1186467839186.JavaMail.jira@brutus> Date: Mon, 6 Aug 2007 23:23:59 -0700 (PDT) From: "Charl Gerber (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (EMAIL-67) Create e-mail attachment using an OutputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Create e-mail attachment using an OutputStream ---------------------------------------------- Key: EMAIL-67 URL: https://issues.apache.org/jira/browse/EMAIL-67 Project: Commons Email Issue Type: New Feature Reporter: Charl Gerber Priority: Minor 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.