Sending email after collaboration approve of new user

Author Message

Jean-Luc Nguyen

Wednesday 27 May 2009 5:17:16 am

Hello,

I would like to send an email to the user after the administrator approve / reject his new account creation on collaboration module.

- Create new trigger (send email workflow after collaboration approve / reject) : we cannot create new triggers without modifying the kernel.
- After approve / reject, the new user object is waiting for the cronjob to be published, but it is still on the kernel side..

Any ideas?

Thanks a lot!

http://www.acidre.com

Luis Micunco

Wednesday 05 August 2009 3:36:57 am

Is there a kind of "state" for objects that indicates it has been approved or rejected?

If so, a cronjob could be run as last for "frequent" group:

php runcronjobs.php frequent

This cronjob would look for "approved/rejected" objects and email the object creator/owner about object "state". Finally modify object "state" to do this only once per object.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:34:24
Script start
Timing: Jan 18 2025 18:34:24
Module start 'layout'
Timing: Jan 18 2025 18:34:24
Module start 'content'
Timing: Jan 18 2025 18:34:25
Module end 'content'
Timing: Jan 18 2025 18:34:25
Script end

Main resources:

Total runtime1.0130 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.1406152.6406
Module start 'layout' 0.00600.0034 740.781339.4766
Module start 'content' 0.00951.0022 780.2578522.1563
Module end 'content' 1.01170.0012 1,302.41418.1250
Script end 1.0130  1,310.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3067160.0002
Check MTime0.00120.1201160.0001
Mysql Total
Database connection0.00100.100810.0010
Mysqli_queries0.968195.5655540.0179
Looping result0.00090.0880520.0000
Template Total0.978096.520.4890
Template load0.00220.220320.0011
Template processing0.975796.324720.4879
Template load and register function0.00010.009410.0001
states
state_id_array0.00110.111610.0011
state_identifier_array0.00100.102620.0005
Override
Cache load0.00190.1841150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.062120.0003
Fetch class attribute name0.00130.126730.0004
XML
Image XML parsing0.00060.058220.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00070.0701160.0000
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs