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

Problem with Image uploaded in Rad Editor

6 Answers 129 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nidhi
Top achievements
Rank 1
Nidhi asked on 04 Jan 2011, 08:27 AM
I have created a web page in which I placed a rad editor and when I uploaded an image from the image manager then in rad editor it uploaded the image but when I save it and send an outlook email then it donot show the image in the email. The code which I wrote in aspx page is 

 

<script type="text/javascript">

 

 

function OnClientLoad(editor) {

 

 

var body = editor.get_document().body;

 

body.setAttribute(

"unselectable", "off");

 

}

 

 

</script>

 

<

 

telerik:RadEditor ID="reMessage" runat="server" OnClientLoad="OnClientLoad" NewLineBr="false" >

 

 

<Content></Content>

 

 

<ImageManager UploadPaths="~/Images" DeletePaths="~/Images" ViewPaths="~/Images" />

 

 

<TemplateManager UploadPaths="~/Templates" DeletePaths="~/Templates" ViewPaths="~/Templates" />

 

 

</telerik:RadEditor>

 

 And The code on aspx.cs page for sending email is

 

SmtpClient Client = new SmtpClient();

 

 

MailMessage mail = new MailMessage();

 

mail.Body =reMessage.Content;
Client.Send(mail);

I am attaching screenshot for this so that it will be more clear what is the problem I am facing.Can you please tell me some solution to fix this problem.

 

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Jan 2011, 08:46 AM
Hi Nidhi,

It is recommended to use images with absolute paths for your e-mail scenario. To produce images with absolute src paths, you should enable the MakeUrlsAbsolute filter, e.g.

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

More information is available in the following help article: Content Filters.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Nidhi
Top achievements
Rank 1
answered on 05 Jan 2011, 07:39 AM
Thanks a lot, now when I am able to view uploaded image in my outlook email for viewing it, I have to select Display as Html option which is better than the earlier scenario.

Nidhi
0
Nidhi
Top achievements
Rank 1
answered on 11 Jan 2011, 02:10 PM
when i applied absolutepathfilter property the email is coming as junk mail and in that i got the path of image as link and then i have to choose the option display as html so what should i apply so that the email will go in inbox. 
0
Rumen
Telerik team
answered on 13 Jan 2011, 02:46 PM
Hello Nidhi,

This is a security setting of Outlook which ask the received to load or not the images in the email. My suggestion is to check the Actions -> Junk E-mail -> Junk E-mail Options... of Outlook and see how to disable this feature.

All the best,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Nidhi
Top achievements
Rank 1
answered on 17 Jan 2011, 10:38 AM
I have disable the option of "Dont turn on links in messages that might connect to unsafe or fraudulent sites." But then also the email is coming as junk mail. So please suggest me other solution.Thanks.
0
Rumen
Telerik team
answered on 19 Jan 2011, 03:38 PM
Hello Nidhi,

I am not so familiar with MS Outlook and the problem is not directly related to Telerik controls. That is why I could not be of much help for this scenario. My suggestion is to search in Google for this problem and see what type of links expect Outlook. After that using a content filter or server code you can modify the produced by RadEditor content so that it match the content requirements of MS Outlook.

Kind regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Nidhi
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Nidhi
Top achievements
Rank 1
Share this question
or