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

Can we use the RadEditor with Image Manager when send email?

3 Answers 172 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mya Thandar
Top achievements
Rank 1
Mya Thandar asked on 30 Dec 2011, 06:08 PM
Hi Everyone !

I am creating the email editor with RadEditor. Although I can insert image with Image Manager, when i click the send button the image cannot show. I attach the file . Let me know who can resolve?

Here are my C# code behind.

 SmtpClient smtp = new SmtpClient();
        MailMessage mail = new MailMessage();
        mail.To.Add("xxxxxx@xxxx.com");
        mail.From = new MailAddress("xxxxxx@gmail.com");
        mail.Body = RadEditor1.Content;

        smtp.Host = "smtp.gmail.com";
        smtp.Port = 587;
        smtp.EnableSsl = true;       
        smtp.EnableSsl = true;
        smtp.Send(mail);

Thanks
Htut

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Jan 2012, 12:36 PM
Hello,

In mail scenarios it is recommended to insert images with absolute paths so that they are accessible via Internet. You should enable the MakeUrlsAbsolute filter of RadEditor:

ContentFilters
="DefaultFilters,MakeUrlsAbsolute"

or

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

which will make all src attributes in the editor content to have absolute URLs.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Mya Thandar
Top achievements
Rank 1
answered on 08 Jan 2012, 04:27 PM
Hi Rumen

Could you advise me the example link?
Although I was  trying this  "RadEditor1.EnableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute);
", It's still the same.


Thanks
Htut
0
Rumen
Telerik team
answered on 09 Jan 2012, 04:33 PM
Hello Htut,

You can test the MakeUrlsAbsolute filter in the Built-in Content Filters demo. Just insert an image from the image manager when the filter is enabled and disabled and check the differences.


Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
General Discussions
Asked by
Mya Thandar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Mya Thandar
Top achievements
Rank 1
Share this question
or