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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to