Forums / General / Sending an email for an approval event

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.

eZ debug

Timing: Jan 18 2025 00:59:16
Script start
Timing: Jan 18 2025 00:59:16
Module start 'content'
Warning: PHP: E_WARNING Jan 18 2025 00:59:17
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 00:59:17
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 00:59:17
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 00:59:17
Module end 'content'
Timing: Jan 18 2025 00:59:17
Script end

Main resources:

Total runtime1.3242 sec
Peak memory usage4,096.0000 KB
Database Queries228

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.7344180.8359
Module start 'content' 0.00841.1754 768.5703808.4375
Module end 'content' 1.18370.1404 1,577.0078345.5234
Script end 1.3241  1,922.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2969210.0002
Check MTime0.00140.1082210.0001
Mysql Total
Database connection0.00130.097110.0013
Mysqli_queries1.228192.74212280.0054
Looping result0.00220.16712260.0000
Template Total1.287597.220.6437
Template load0.00230.171720.0011
Template processing1.285297.054320.6426
Template load and register function0.00010.009010.0001
states
state_id_array0.00130.100510.0013
state_identifier_array0.00140.106720.0007
Override
Cache load0.00200.1474440.0000
Sytem overhead
Fetch class attribute can translate value0.00140.105680.0002
Fetch class attribute name0.00190.1434140.0001
XML
Image XML parsing0.00420.317380.0005
class_abstraction
Instantiating content class attribute0.00000.0016140.0000
General
dbfile0.00760.5712390.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs