This is a migrated thread and some comments may be shown as answers.

[Solved] How to send MailMessage of embedded RadEditor HTML Content

1 Answer 281 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Marty
Top achievements
Rank 1
Marty asked on 02 Mar 2010, 04:17 AM
Hi, long time fan.  I'm just getting into the RadEditor and I'm wondering if you can help me with examples or ideas on the following:
1. Send MailMessage with embedded content - I know how to send embedded content with an alternate view, etc. but I'm wondering how I can enumerate all the embedded images in the editor's embedded content - hoping there's a collection where I can create contend IDs for a mail message.  Is that the right idea?  Or is this something the .NET Mail 3.5 supports, i.e. converts SRC=path.jpg to content ids automatically?

2. Can you send an example of how this would work?  All the examples use a fixed attachment or content ID.  I need to do this automatically.

3. Do I really need to resport to parsing the HTML and string.replace on SRC= everywhere?  Seems like sending RadEditor Mail is like the first thing people do with this editor. 

I'm hoping I can at least get at the embedded collection and string.replace without doing RegExpression pattern matching.

thanks
Marty


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Mar 2010, 11:17 AM
Hi Marty,

All e-mail clients support HTML and it is not needed to send the images as attachments. What you should ensure is that the images' src paths are absolute so that the client can access them through Internet and HTTP protocol.

You can instruct RadEditor to insert images with absolute paths via the Image manager by enabling the MakeUrlsAbsolute content filter of RadEditor, e.g.

RadEditor1.EnableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute);

If the image is accessible via the HTTP protocol from the web server then it will be visible in the e-mail client too. Some e-mail clients as outlook do not directly load the images and they ask the user whether to show the images or not: "show images in this message".

Sincerely yours,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Marty
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or