Sending an email for an approval event

Author Message

Thomas DELHOMENIE

Wednesday 15 September 2004 9:26:09 am

Hi,

I'd like to send an email when un approval event occurs.
For example, an user write an article which has to be approved by another one. I want this second user to be warned by email that he has an article to approved. And after he approves the article, i'd like to send an email to the first user to tell him that the article has been approved.

How can I do that ?

I really need help !
Thank you

Tom

Thomas DELHOMENIE

Wednesday 29 September 2004 12:07:14 am

Nobody ? :(
Please... even if it's to say that it's not possible.

Tom

Olivier Pierret

Tuesday 23 November 2004 5:56:19 am

Hello Tom et al.

I'd like to do someting equivalent (I want to approve user registration and send a notification to the user requesting access when he has been approved). I guess we should build an email notification event and put it in the workflow.

Did you progress on this issue since your last post ?

Many thanks for your help

Olivier

Stig Aune

Wednesday 15 February 2006 7:25:29 am

I have the same question as Thomas DELHOMENIE. Does anyone know the answer to this?

Brian Gambill

Wednesday 15 February 2006 11:33:57 am

Stig Aune

Wednesday 01 March 2006 2:32:22 pm

Thank you Brian, I followed your explanations, and it worked like a charm! :-)

Sergiy Pushchin

Thursday 02 March 2006 8:14:01 am

Also you can check out new documentation about notification in eZ publish.
http://ez.no/doc/ez_publish/technical_manual/3_6/features/notifications

Leif Arne Storset

Friday 31 March 2006 4:14:37 am

Although Brian's solution is very good as far as it goes, it still does not solve part of the original problem: notifying the user that submitted the object for approval. I am considering branching Lukasz Serwatka's Information extension for this purpose.

Leif Arne Storset

Xavier Dutoit

Friday 31 March 2006 4:37:15 am

That would be a nice event to have so it's easy to notify the owner of the published object about something.

Let us know...

X+

http://www.sydesy.com

Brian Gambill

Friday 31 March 2006 6:59:59 am

Isn't this what happens when the author checks the approval box for collaboration notification? In admin side under 'My Account Tab', 'My Notification Settings', 'Collaboration Notification'.

Of course the author could always sign up to receive notifications for the section(s)/ folders/ articles they are writing.

Stig Aune

Friday 31 March 2006 7:34:15 am

Brian writes: Isn't this what happens when the author checks the approval box for collaboration notification?

Brian, what happens when the author checks that box is that he gets a notification when submitting the article for approval. He will get a mail stating that the article is with the editor waiting to be approved. The editor will get a similar mail, stating that there is an article waiting to be approved by him.

However, when the article is approved (or, even more importantly, when the article is rejected and sent back to the author for modification), the author gets no notification at all.

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 02:16:40
Script start
Timing: Jan 18 2025 02:16:40
Module start 'layout'
Timing: Jan 18 2025 02:16:40
Module start 'content'
Warning: PHP: E_WARNING Jan 18 2025 02:16:41
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 2 and paragraph in Entity, line: 4 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 18 2025 02:16:41
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 4 and paragraph in Entity, line: 7 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 18 2025 02:16:41
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 4 and section in Entity, line: 7 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 18 2025 02:16:41
Module end 'content'
Timing: Jan 18 2025 02:16:41
Script end

Main resources:

Total runtime1.1805 sec
Peak memory usage4,096.0000 KB
Database Queries91

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0469152.6250
Module start 'layout' 0.00610.0026 741.671939.4453
Module start 'content' 0.00861.1702 781.1172803.3594
Module end 'content' 1.17880.0017 1,584.476620.3672
Script end 1.1805  1,604.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2877160.0002
Check MTime0.00150.1253160.0001
Mysql Total
Database connection0.00100.081610.0010
Mysqli_queries1.110694.0795910.0122
Looping result0.00080.0711890.0000
Template Total1.149597.420.5747
Template load0.00170.140920.0008
Template processing1.147897.230620.5739
Template load and register function0.00020.021210.0002
states
state_id_array0.00130.108610.0013
state_identifier_array0.00110.092520.0005
Override
Cache load0.00150.1278440.0000
Sytem overhead
Fetch class attribute can translate value0.00090.077770.0001
Fetch class attribute name0.00160.1314140.0001
XML
Image XML parsing0.00200.167970.0003
class_abstraction
Instantiating content class attribute0.00000.0037140.0000
General
dbfile0.00120.0987280.0000
String conversion0.00000.000740.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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs