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

image path in email

4 Answers 98 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 11 Sep 2008, 09:44 PM
i am using the editor to create an email. i use the image editor to insert an image into the email. here are my settings:

Dim imagepath() As String = {"~/images/pysa"}

EmailTemplateText.ImageManager.UploadPaths = imagepath

EmailTemplateText.ImageManager.ViewPaths = imagePath

EmailTemplateText.ImageManager.DeletePaths = imagepath


When I send the email, the image does not appear. That is because the path is as below instead of the full path of http://www.sportsconductor.com/images/pysa/pysa_header_dkgreen_bg.gif. The html for the email is below:


<img alt="" src="/images/pysa/pysa_header_dkgreen_bg.gif" /><br />
<br />
<br />
test

What do I need to change to get the full path to show up with the email is sent?

Thanks,
Susan

4 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 12 Sep 2008, 12:10 PM
Hi Susan,

You should enable the MakeUrlsAbsolute client filter of RadEditor via the codebehind:

RadEditor1.EnableFilter(EditorFilters.MakeUrlsAbsolute);

If the MakeUrlsAbsolute filter is enabled the link and images should be always inserted with absolute paths via the Image and Link managers.

Have a nice weekend,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Susan
Top achievements
Rank 1
answered on 12 Sep 2008, 12:53 PM
That worked. Thanks!

Susan
0
rh
Top achievements
Rank 1
answered on 28 Jan 2009, 12:45 AM
I think this would be great to go in the documentation under Controls -> RadEditor -> Dialogs -> Images. That's the natural place for someone to go look to solve this problem and that page already has the other information about the image paths so it seems like a good place for this.
0
Rumen
Telerik team
answered on 28 Jan 2009, 08:14 AM
Hi Roy,

Thank you for the suggestion - this is what we will do. I updated your Telerik points for your suggestion.


Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Susan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Susan
Top achievements
Rank 1
rh
Top achievements
Rank 1
Share this question
or