Imported html with image references

Hi,

i have an html file - with “img src=‘http://…’” references - what i want to import into notes. I want to use img refs. instead of embedded pics because to reduce the size of the mail. The problem is that when i import the html and then send it, the mail size remains the same. It seems that at the import the notes delete the img refs. and put the pictures instead.

So how can i send this mail only with the img refs?

Thank You!

Subject: Imported html with image references.

You would need to create a MIME message and send that.

Subject: RE: Imported html with image references.

Sorry but pls can you clarify that for me? I mean the client is configured to send internet mails in MIME format. Sorry for me being no*b.Thank You.

Subject: RE: Imported html with image references.

OK, I’ll do my best to explain. Internally, when a document is open for editing or reading, it is actually Notes Rich Text. While there is an internal format for image references, the Notes client doesn’t offer any way to create them (you can do it through the C API), and does its best to resolve the references and load the images internally, so after you import the HTML, the image gets sucked into the document as an in-line image, not a reference.

When your document gets mailed outside of the Notes world, it is converted to MIME, as that is an accepted mail standard format. Since your image is not an in-line image, it gets converted to a MIME part and mailed along with, which is not what you want.

So, instead, you could create your own MIME message. There are Notes classes to do this, including the NotesMimeEntity class, and some good examples in the Help db and here in this forum. Since the basic rich content of the MIME message is HTML, you can add your image references directly there. When the document is saved and mailed, the MIME remains as MIME, so it does not need to be converted.

One important note. If you are mailing this to a Notes user who then either edits the mail and saves it (unlikely) or forwards it on to somebody else (more likely) or replies to the message with history (quite likely), the rich text rule above applies, meaning that the picture will be sucked into the content and made an in-line image.

For a bit more information on MIME and rich text and all, see my article Rich Text 101 - MIME/HTML.

Subject: RE: Imported html with image references.

Ben, Thank You very much for your useful reply.