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 30973] - [email] [patch] HTML email with plain text alternative and attachments
Date Mon, 08 Nov 2004 16:18:53 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=30973>.
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=30973

[email] [patch] HTML email with plain text alternative and attachments





------- Additional Comments From scott@minutestopost.com  2004-11-08 16:18 -------
Hi,

This is a step in the right direction...a message with html and plain text will
display properly. However I noticed two issues after applying the patch:

1. Embedded images. It appears to construct a message like (assuming 1 embedded
jpeg):
multipart/alternative
    text/plain
    text/html
    image/jpeg

Since they all belong to the alternative part, only the last part (the image) is
displayed by the email client, and the rest is ignored. The html and embedded
image content need to be in a nested mulipart/related.

2. Attachments. Attachments are added to the email by MultipartEmail.attach()
before the rest of the message is constructed during HtmlEmail.send(), creating
(assuming 1 jpeg attachment):
multipart/mixed
    image/jpeg
    multipart/alternative
        text/plain
        text/html
        
This isn't necessarily incorrect, but would probably be unexpected behavior for
users because many clients (I'm testing in thunderbird, evolution, and apple
mail) will display the attachment (or an icon representing the attachment)
inline at the top of the email.

Scott

---------------------------------------------------------------------
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