image path in email

5 posts, 1 answers
  1. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 11 Sep 2008 Link to this post

    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
  2. Answer
    Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 12 Sep 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 12 Sep 2008 Link to this post

    That worked. Thanks!

    Susan
  5. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 27 Jan 2009 Link to this post

    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.
  6. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 28 Jan 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017