http://java.sun.com/developer/onlineTraining/JavaMail/exercises/MailHtml/
It seems mail clients like Outlook and Mozila Mail/Thunderbird (and probably other email clients that display html) can use the <img src="cid:myattachmentname"> instead of the server etc. It will look for the attachment with the Content-ID of 'myattachmentname' and display that.
Henri Yandell wrote:
You can't embed pictures in emails. You can have <img src="foo"> etc in them, but the picture will be obtained from a server of some kind.
Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from attachments.
I usually send from Outlook to Pine to see this, but I'm sure there are ways to see what the html really looks like in Outlook. Save it or something. Anyway, you'll see lots of special tags that exist. I've never really played with them though.
I'd definitely be interested in seeing any info which details the pseudo-library of extra tags that Outlook converses in, but have never really gone looking for them. Maybe it's possible to write a Java library for creating Outlook-HTML pages and then sending it as a mime-type that only Outlook responds to (?). We could then send 3 versions of every mail, plain-text, html and outlook-html.
Just some thoughts...
Hen
On Mon, 5 Apr 2004, Edsard Vegter wrote:
Hi,
Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to
go one step further and have a picture in the email as well. Is it
possible to embed a jpg of gif in the message??? And if so, how do I do
this
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jason Lea
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]