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

Forums / General Discussions / Newsletter module error

Newsletter module error

4 posts, 0 answered
  1. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    13 Nov 2010
    Link to this post
    Hello ALL again!!!
    When I try to set smpt settings in newsletter module I give an error (on attached screenshot)
    Why?
    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Nov 2010
    Link to this post
    Hello rent,

    You have to use an email address for a user name. You can cheat the form through the database

    1. Create a new SMTP settings using your credentials and click Test and Save. The error message will appear, but do not delete this settings.
    2. Open [sf_Notif_SMTPSetting] for [status] column set True and for [Active] set True.
    3. Go back to the newsletters module and the settings from step 1 will be active. You should be able to send a newsletter.

    Regards,
    Ivan Dimitrov
    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
  3. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    15 Nov 2010
    Link to this post
    Hello!!!
    How to send newsletter to subscribers automaticaly when new news was published?
    Thanks.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Nov 2010
    Link to this post
    Hi rent,

    In Application_Start of Global.asax you can subscribe for ContentManager.Exectuted static event and inside the event you should check whether the command name is CreateContent, get the provider - News and send a newsletter.

    sample

    void Application_Start(object sender, EventArgs e)
      {
          // Code that runs on application startup
          Telerik.Cms.Engine.ContentManager.Executed += new EventHandler<Telerik.ExecutedEventArgs>(ContentManager_Executed);
      }
     
      void ContentManager_Executed(object sender, Telerik.ExecutedEventArgs e)
      {
          if (e.CommandName == "UpdateContent" || e.CommandName == "CreateContent")
          {
              var providerName = (e.Data as Telerik.Cms.Engine.Data.CmsContentBase).ProviderName;
              if (providerName == "News")
              {
                  var itemID = e.ItemID;
                 // send an email by using SendEmail method of NewsletterManager
              }
          }
      }


    Greetings,
    Ivan Dimitrov
    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
Register for webinar
4 posts, 0 answered