Ticket #1199 (assigned enhancement) — at Version 3
Implement an email function for users.
Reported by: | pudo | Owned by: | pudo |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | notifications |
Description (last modified by rgrp) (diff)
We need an email function in CKAN to accept messages sent to users. The basic signature will be:
- mail_user(user_obj, subject, body, mime_type='text/plain', headers={})
This has a number of use cases:
- Retrieval of lost passwords
- E-Mail confirmation
Finally, the mail function should be exposed in the API for sysadmin clients. This way we can have scripts traverse CKAN for 404s, invalid data or missing fields and ping users about that automatically (requires traversal by revision, not package, to get the associated users).
Implementation
Note we have already written code like this (*and* tested it) in isitopen:
Change History
Note: See
TracTickets for help on using
tickets.
Not sure we need exposure this via the API (at least at this point) as things like auto mass emailing could be in done in separate component (that talks to CKAN).