Copied to clipboard

Flag this post as spam?

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


  • saintwright 69 posts 77 karma points
    Sep 14, 2009 @ 03:34
    saintwright
    0

    How to email Members when new content is added

    Hi

    I need to have certain members (with defined roles) sent an email when new pages are added under a Newsletter content tab - I have seen Notifications mentioned but not sure if this applies to emailing certain member roles.......

     

    Any ideas

     

    thanks

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 14, 2009 @ 07:45
    Dirk De Grave
    0

    notifications apply to users, not members, you'll have to wire up an eventhandler that checks for document type (based on alias of the document being created) and sends a mail to member(s) based on your conditions.

    You'll find some interesting articles on event wiring on the wiki.

    http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events

    http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/event-examples

    http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/overview-of-all-events

     

    Feel free to ask more questions if still unclear.

     

    Cheers,

    /Dirk

  • saintwright 69 posts 77 karma points
    Sep 14, 2009 @ 12:10
    saintwright
    0

    Thank you for answering - so do I just create a new DLL with the class

    public class AppBase : umbraco.BusinessLogic.ApplicationBase {

    .......etc...

    Do I have to reference this somewhere???? or does it just get called?

     

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 14, 2009 @ 12:47
    Dirk De Grave
    0

    Yep, just make sure to reference the necessary umbraco dll's  (don't know by heart which ones, most likely the umbraco, interfaces, ...).

    You'll have to restart the application when your dll is deployed to take effect!

     

    Cheers,

    /Dirk

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies