Page 1 of 1

inserting image from URL

Posted: Mon Nov 24, 2014 12:47 pm
by Lucian
Hi,

In our app, people can send emails (we use html export for the email's body) and we allow them to create signatures with company logo, etc. However, the images get mixed up or lost. Different mail programs don't receive the same thing, it's a big mess.

We think a solution would be if we could insert an image from an URL, so, when the email is sent and the content converted, the image is actually an html tag, <img src="http://mysite/mylogo.jpg" otherattributes="...">

Is it possible? We are using TRichView, without the RichViewActions; also the HtmlViewer/Importer.

Thanks

Posted: Mon Nov 24, 2014 2:34 pm
by Sergey Tkachenko
Embedding images in email itself is more reliable (if it is done correctly).
Images from external sources can be blocked by email viewers (for example, I use Windows Live Mail; I need to click a button to show external images, or add a sender to a list of trusted senders).

How to save a link to external image in <img src>:
1) For image item, assign its rvespImageFileName property see http://www.trichview.com/help/idh_type_ ... perty.html .
2) When saving HTML, include rvsoUseItemImageFileNames in the Options of HTML saving method.

Or you can save any <img src> using OnHTMLSaveImage or OnSaveImage2 event.