1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Newsletter subscribers

Newsletter subscribers

2 posts, 0 answered
  1. Kristina
    Kristina avatar
    17 posts
    Registered:
    17 Mar 2009
    30 Mar 2009
    Link to this post
    Hi,

    I was looking at the Newsletter module and have a couple of questions:
    1. Can I create a new subscriber via a page instead of through the Admin?
    2. Can I export a list of subscriber email addresses to XML or text file?

    Thanks and Regards,

    Kristina Thong
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    30 Mar 2009
    Link to this post
    Hello Kristina,

    1. Can I create a new subscriber via a page instead of through the Admin?

    You can drop "Subscription form" control from your toolbox to any page you want.

    2. Can I export a list of subscriber email addresses to XML or text file?


    You can use GetSubscribers method. Here is an example below.

            DataManager man = new DataManager(); 
            IList list = man.GetSubscribers(); 
            foreach (ISubscriber subscriber in list) 
            { 
                // add logic here 
            } 

    I hope this helps.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
2 posts, 0 answered