Copied to clipboard

Flag this post as spam?

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


  • Mads Justesen 11 posts 121 karma points
    Oct 28, 2022 @ 10:31
    Mads Justesen
    0

    Get Subscribers to a specific mailing list

    Hej there!

    I'm currently working on a project, where our client woul like to utilize Newsletter Studio to manage their subscribers for various mailing lists. As is ,they have no desire to use any other features than managment of the mailing list.

    Im currently trying to get hold of all the subscribers to a specific mailing list but am unable to find any method which allows for it. Am I missing a method or do I have to figure out a work around?

    Kind regards Mads Justesen

  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Oct 28, 2022 @ 13:25
    Markus Johansson
    0

    Hi Mads!

    I think that the problem here is that we don't expose this information in a public API at the moment. We do have this in the backlog.

    What version of the package are you looking at?

    Can you please describe some more about your use case just so that I can understand how we can make sure to find a suitable solution?

    Cheers!

  • Mads Justesen 11 posts 121 karma points
    Oct 31, 2022 @ 08:04
    Mads Justesen
    0

    Hi Markus.

    Thanks for the answer.

    I'm currently on version 10.0 and regarding our use case:

    • several mailing lists.
    • a user can be member of all the lists
    • once a day go through our news content and see if a new topic has been create then send a mail to all subscribers of the associated mailing list.

    My original idea was to simply get all the mails from a mailing list and then send an email using our smtp, however considering that isn't posible is there an option to get all Subscribers? so that I could loop through and find all who are associated with the current mailing list?

    Kind regards Mads Justesen

  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Oct 31, 2022 @ 09:54
    Markus Johansson
    0

    Hi!

    I think I follow your use case, I'm guessing that this is something that you would like to do as a background job that runs X times a day or something?

    Are you planning to send one email per "news content" or some kind of summary? (Asking because the approaches might be different). And when you say "Topic" what is your definition of a topic? Is that a tag or some kind of Umbraco-node?

    We do have the "send content as a campaign"-feature: https://www.newsletterstudio.org/documentation/package/4.0.0/develop/sending-from-content-section/

    But in general, the current API is limited when it comes to triggering campaigns from code which is something that I want to improve - it's basically just about opening up the parts that are needed to create and save a campaign.

    I can see a possible solution that might look like this:

    • Each "Topic" in your system is connected to a given Mailing List (probably using the property editor "Mailing List Picker" that we ship.
    • Your background job runs and checks if there are any new articles on a given topic. If there is:
      • If sending a summary we could duplicate an existing campaign and set the right "topic" and use a macro inside the email to render the summary.
      • If sending one email per article we could probably use the "Send content as a campaign"-feature.

    This would create a new campaign for each email giving you analytics data and so on. If you only want to send a simple email and read the recipients from a mailing list this should also be possible. Could also use the "Transactional Email"-feature, this allows sending to multiple recipients but maybe not to lists of 100s of people per email, if that is the case I would vote for using campaigns.

    I've started the work on opening up the API to trigger new campaigns from code but I need some time to make sure that this is in a good state. Do you have any tight deadlines around this?

    I would be happy to continue the conversation here to try to find the best way to facilitate your use case. Given the ideas above, what is your reflections?

  • Mads Justesen 11 posts 121 karma points
    Oct 31, 2022 @ 11:04
    Mads Justesen
    0

    Hi Markus

    I'm going to try and formulate the task I'm working on better to clear any confusion.

    We have got 17 different associations (mailing list) We got a content type named News which have a association multiselector. Every day at a certain time, for example 23.00, we want to look at all news and send out a campaign for all newly created news. We want to create a single mail per person. So if mailing list 1 has 2 new news item and mailing list 2 have 3 new news item, then user 1 who subscripe to mailing list 1 should recieve a mail with 2 news item and user 2 who subscripe to mailing list 1 and 2 should recieve a mail with 5 news items.

    Regarding the feature "send content as a campaign", we would prefer to do the generating of mails in code so that our client only has to create the news item.

    The content in the mails is rather simple as it is just a date, intro text, association name and a link to the news item, for each news item created.

    Each News item isn't per say connected to the mailing lists as is. Currently we have a content type named Associations which are used for various functions on the site and its only connection to the mailing lists are that they share the same name.

    Creating a "campaign template" which we duplicate as you suggested might be a option. However considering that the campaign has to be dynamic, it would be better to be able to create one from scratch every time.

    I do apologize if I'm missing something obvious.

    Kind regards

    Mads Justesen

    edit: Regarding the deadline I'll have to speak with my PM however they are currently otherwise engaged, I'll return when I manage to catch them.

    Edit2: Had a talk with the PM, Our UAT starts at the 24 of november, so thats the deadline for when it needs to be done. If its a unreasonable request for your aid please do let me know. Also a little extra note, I know it might seem wierd, but our client has no intention of using the backoffice extension of your package for anything else then importing Mailing lists. everything else should be handle by us in code

  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Nov 08, 2022 @ 14:48
    Markus Johansson
    100

    Hi!

    Considering the deadline I just want to let you know what there will not be any updates released to facilitate this before your deadline.

    Also, given your requirements, maybe you could solve this with a simple database-table? I mean if you're not using any other features of the package the benefits are quite small.

    If you're looking for a rapid way to build the backoffice UI maybe Konstrukt https://our.umbraco.com/packages/backoffice-extensions/konstrukt/ ?

    Hope that you find a good way to approach the problem!

  • Mads Justesen 11 posts 121 karma points
    Nov 11, 2022 @ 09:19
    Mads Justesen
    0

    Thanks for the headsup!

    We'll look in to another solution and thank you for the assistence with trying to figure this out.

    I'll take a look at konstrukt, not sure if its what we need but it might help us with another task :)

Please Sign in or register to post replies

Write your reply to:

Draft