Tuesday 26 June 2007 12:01:41 pm
Hi, I don't think I've seen something like this before. The easiest would probably be to use newsletter with a custom cronjobs that only send out emails if there are more then 2 new jobs for instance. But could also be solved with a cronjob (script), fetching all new content of type class 'job', and generate the email for it. Then fetch all users with attribute 'send_new_jobs_on_mail' set to true, and send out the pre generated mail to them one at a time.
fetching from php example: http://ez.no/community/forum/developer/fetchobjecttree_not_sorting_correctly/(offset)/0#msg133910 examples of cronjobs are on the contribution are of this site and the cronjob folder in eZ Publish. EDIT: seems like you need to loop true every user to see what kind of jobs they want and create the mail for them based on that if there are any new mail in that categories.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|