commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36844] New: - Embedding raw DataSource Attachments
Date Wed, 28 Sep 2005 14:07:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36844>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36844

           Summary: Embedding raw DataSource Attachments
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Email
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: wolfeb@mitre.org
                CC: wolfeb@mitre.org


I kick myself for not submitting this prior to 1.0.  An important feature
missing from org.apache.commons.mail.HtmlEmail is the ability to embed an
arbitrary DataSource object.  The current API only allows you to embed from a
URL.  My usage of CommonsEmail often includes the generation of image data
on-the-fly, where it does not exist at a pre-defined URL.  

I propose the addition of a key method:

public String embed(DataSource datasource, String name, String cid) throws
EmailException

This will allow us to attach our own datasources in addition to defining our own
content-ids.  Helper methods can be created to auto-generate CIDs when needed
and allow for backwards compatability.  I've found that being able to provide my
own defined CIDs has been very helpful in referencing them in my velocity email
templates.

I will attach the current EnhancedHtmlEmail class that I have been using for a
year or so.  It extends HtmlEmail to provide the methods explained above.  I
would hope to have this capability introduced into the HtmlEmail class.

Feel free to contact me to discuss further!  Thanks.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message