More in this section

Forums / Developing with Sitefinity / Newsletter online

Newsletter online

2 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    18 Feb 2004
    03 Aug 2010
    Link to this post
    How can I let users view the send newsletter in a webbrowser?
    When their email client cannot view the newsletter correctly, it would be nice to have an option to view the newsletter online.

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    06 Aug 2010
    Link to this post
    Hi Daniel,

    Unfortunately this option is not available in the current versions of Sitefinity. What you can do is to use the Newsletters API to get the latest newsletter and then get its content. The content is in html format so once you get it you can output it to a page. Example bellow:

    DataManager dataManager = new DataManager();
    INewsletter newsletter =(INewsletter)(dataManager.GetNewsletters("SendDate DESC")[0]);
    String newletterContent = newsletter.Content;

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered