Hi,
We are using Ingragisting Html editor.
Requirement :
User can enter the text and add the Images between the text. After Click on submitting button the content of the Richrext editor will be send as an email.
Issue:
Users are recieving email. But inthe email context Embedded image is not showing. Email content is looking Submitter image path Hence image(s) are not displaying.
Please share any workaround to handle this issue.
Hi Prem,
From what you've written above it's not clear how you're embedding the images into the html (which is the content of the igHtmlEditor). I assume these image are stored somewhere on your web-site folder structure and the html provided to the users contains images with relative urls. In most of the cases the users won't have access to them.
My suggestion is to embed the base64 encoded images. That way the users won't have any problems to preview the html you're sending to them. This means that you'll have to provide a base64 encoded string as image source.
Another option is to upload those images to some publicly available location in the internet and provide the absolute urls into the html's image source.
regards,
Bobby Kulov
Hi Borislav Kulov,Thanks for the reply.
I am using Html editor control like below.
@(Html.Infragistics().HtmlEditor().ID("htmlEditor").Render())
Please let me know how to add base64 encoded images in to the Editor text.
Thanks
Regards
Prem
I don't know what your application is doing with the igHtmlEditor's output. As far as I understood you're using igHtmlEditor's output as a source of RichText editor. Then you're sending the content of the RichText editor via email. If that's not the case please provide a simple runnable sample so I can take a look.
What I can advice you is to replace the images source with base64 encoded strings before sending the html via email. That way the client will be able to correctly present the image when receive the email. There are a lot of JavaScript libraries to convert an image to base64 encoded string.