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.......
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.
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
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
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?
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
is working on a reply...