what do I need to do to embed an inline image in the body of an email

0 Answers 74 Views
TextBox
Rabia Nur
Top achievements
Rank 1
Rabia Nur asked on 21 Jun 2023, 07:20 AM

Dim imageStream As Stream = File.OpenRead(DestPath)
                    Dim radDocument As RadDocument = txtBody.Document

 Dim caretPosition As DocumentPosition = radDocument.CaretPosition

caretPosition.MoveToLastPositionInDocument()

Dim inlineImage As New ImageInline(imageStream)
                    txtBody.InsertInline(inlineImage)

this way the picture shows up in radrichtextbox but after sending the mail it only shows up in my attachments. I also want it to come embedded in the body, that is, in the part where the message is written. What should I do?

Dimitar
Telerik team
commented on 21 Jun 2023, 07:55 AM

Hi Rabia,

What is the format that you are exporting to? How the images are stored depends on this. If you are exporting to HTML you can choose the export mode. Detailed information is available here: Settings. Check the ImageExportMode property.

Rabia Nur
Top achievements
Rank 1
commented on 21 Jun 2023, 08:38 AM

Hi Dimitar,
It transfers as html, how can I follow a path in this case? I would be very grateful if you help me. Have a good day.
Dimitar
Telerik team
commented on 22 Jun 2023, 10:32 AM

Hi Rabia,

I am not sure what you are asking for. Could you please elaborate? Perhaps it would be better if you can create a small project that reproduces this case. This will give us a better understanding of your requirements.

I am looking forward to your reply.

No answers yet. Maybe you can help?

Tags
TextBox
Asked by
Rabia Nur
Top achievements
Rank 1
Share this question
or