Copied to clipboard

Flag this post as spam?

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


  • Bilal Isa 3 posts 23 karma points
    Jul 23, 2013 @ 10:25
    Bilal Isa
    0

    send out mails programmatic

    Our idea is to tag newsletter items in the content tree with specific tags and roles, create a custom mail template for mail to use for the emails. When the news item is published our newsletter service will run at some time when it runs find a match between the newsletter items and umbraco members or possibly subscribers from another data source and send the news item.
    So our question is: Is it possible to create custom subscription lists based on umbraco members roles or umbraco groups and send mails programmatic with your product?
    If yes, please outline a solution.
    Thanks in advance.
  • Bilal Isa 3 posts 23 karma points
    Jul 23, 2013 @ 10:27
    Bilal Isa
    0
    Hello again,
    Just want to clarify that the subscription lists will also be created on the fly based on which roles the members have.
    Thanks.
  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Jul 23, 2013 @ 11:11
    Markus Johansson
    0

    Hi Bilal!

    To me honest Newsletter Studio may  not fit perfect into what you are describing - but it is probably "doable".

    It would probably require some custom code and set up. At the moment you can implement your own subscription provider to go and fetch receivers from any source (Umbraco members is built in based on groups/roles).

    When Newsletter Studio calls the provider it fetches a list of receivers. That call will include the current newsletter as a parameter so that you can look on its properties and decide if the receiver that you are about to add to the mailing list should get the email.

    The problem as far as I see it is to keep track of the tags since there is no tagging concept in Newsletter Studio - so you would probably need to create some custom table to handle that.

    Here are two simple providers:
    https://github.com/enkelmedia/NewsletterStudioContrib/tree/master/NewsletterStudioContrib/SubscriptionProviders

    And the SendOutParams only contains the Newsletter-object that is about to be sent.

     

    The best way to trigger automatic send outs it to set the scheduled-date for an e-mail.

  • Bilal Isa 3 posts 23 karma points
    Jul 23, 2013 @ 11:34
    Bilal Isa
    0
    Hi Markus.
    Thank your for the quick reply. See my comments.
    To me honest Newsletter Studio may  not fit perfect into what you are describing - but it is probably "doable".
    Comment: I think it's obvious to use newsletter studio because we can use items in the site tree as sources for the newsletters.
    It would probably require some custom code and set up. At the moment you can implement your own subscription provider to go and fetch receivers from any source (Umbraco members is built in based on groups/roles).
    Comment: I'm probably going to implement membership / log in and have the users as umbraco members and divide them into groups. Can your link to some code examples?
    When Newsletter Studio calls the provider it fetches a list of receivers. That call will include the current newsletter as a parameter so that you can look on its properties and decide if the receiver that you are about to add to the mailing list should get the email.
    The problem as far as I see it is to keep track of the tags since there is no tagging concept in Newsletter Studio - so you would probably need to create some custom table to handle that.
    Comment: My idea is to add a tagging page property to the newsletter document type, something like a check box list that list all defined tags and roles (which I will define in some data container) and select the appropriate tags / roles and publish the pages. Won't this keep track of the tags? 
    And the SendOutParams only contains the Newsletter-object that is about to be sent.
     
    The best way to trigger automatic send outs it to set the scheduled-date for an e-mail.
    Comment: isn't there an API send email method?
  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Jul 23, 2013 @ 12:36
    Markus Johansson
    0

    Comment: I'm probably going to implement membership / log in and have the users as umbraco members and divide them into groups. Can your link to some code examples?
    This is already built in. Newsletter Studio lists all the Members Groups that you have created in the back office. (http://support.newsletterstudio.org/customer/portal/articles/1053009-sending-to-umbraco-members)

    Comment: My idea is to add a tagging page property to the newsletter document type, something like a check box list that list all defined tags and roles (which I will define in some data container) and select the appropriate tags / roles and publish the pages. Won't this keep track of the tags?
    It would probably, but how would you get these tags into the subscription provider at send out? Another approach would be to just select the groups of users that you would like to send the letter to. If you make sure to put receivers in the right groups. (Look at 05:46 where I select the mailing list, this list could also contain all your member groups. http://www.youtube.com/watch?v=9fRSGgMCYaM)

    Comment: isn't there an API send email method?
    Not at the moment but I'll provide you with a simple sample for that and its on the roadmap for upcoming releases.

Please Sign in or register to post replies

Write your reply to:

Draft