Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • keilo 568 posts 1023 karma points
    Dec 26, 2015 @ 12:31
    keilo
    0

    RenderNewsletter

    Prior to version 2.1.4 I was using the direct link

    /App_Plugins/NewsletterStudio/Pages/RenderNewsletter.aspx?id=42&r=1451131916470

    to get rendered html of a sent e-mail, by just knowing the ID number.

    When using the same on the 2.1.4 doesnt seem to be working as it returns an empty aspx page (no content shown).

    Given the ID of the newsletter, what would be the best way to get rendered html of the newsletter - perhaps a method/call that i can use within razor?

  • Markus Johansson 1918 posts 5785 karma points MVP c-trib
    Jan 15, 2016 @ 11:49
    Markus Johansson
    0

    Hi!

    We've changed the logic for previews due to changes in the Umbraco core. Problem is the changes in the security model - even an old version of Newsletter Studio would not work with the 7.3.1-release of Umbraco since the HttpContext (used in the aspx-file that you refer to) will return null for the current user.

    Since this is not a public feature or api we don't keep the backwards compatibility if it takes to much work.

    // m

  • keilo 568 posts 1023 karma points
    Jan 15, 2016 @ 11:52
    keilo
    0

    Hi Markus

    I have a page where i show sent newsletters with a link to view them in "Rendered" form

    so the

    /App_Plugins/NewsletterStudio/Pages/RenderNewsletter.aspx?id=12

    was working just fine when I pass the ID of the newsletter.

    With 2.1.4, what i can do to get the same RenderNewsletter by passing the id?

  • Markus Johansson 1918 posts 5785 karma points MVP c-trib
    Jan 15, 2016 @ 11:57
    Markus Johansson
    0

    Hi Keilo!

    It's not a feature that we provide an api for - you can look at the source and network traffic in the developer console but I can't give you any code snippets.

    // m

  • keilo 568 posts 1023 karma points
    Jan 15, 2016 @ 12:01
    keilo
    0

    Can I use the readonline link by passing the id of a newsletter, that should render the newsletter.

    I think it encodes the id so it doesnt accept plain id, what algorithm does it use to encode the id?

Please Sign in or register to post replies

Write your reply to:

Draft