send email to administrator when article comment is submitted?!

Author Message

Daniele Nocentini

Friday 25 March 2005 3:17:46 am

it is possible to allow the anonymous users to publish an article comment but an eamil send to administrator? as I can make this?

Antica Bottega Digitale srl
http://www.abd.it

Łukasz Serwatka

Friday 25 March 2005 3:32:31 am

Of course. You can add "Article" folder to Administrator notification settings and configure cronjob to run runcronjobs.php script for every 15 min for example. So when Anonymous user creates new object (New comment), Administrator user will recive a e-mail.

My account->My notification settings

http://ez.no/ez_publish/documentation/installation/the_cronjob_script

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Nocentini

Friday 25 March 2005 4:03:56 am

ok, but I'm in difficulty for setup cli php on windows machine!

I can try to run runcronjobs.php via browser but I receive this error:

#!/usr/bin/env php PHP is currently using the 'apache2handler' interface. Make sure it is using the 'cli' interface. 

Ok I undestand that the php must running in cli mode, but now I'm develope ez on a windows 2000 pro machine and I don't know how can I configure the apache for running php in cli interface.

Antica Bottega Digitale srl
http://www.abd.it

Łukasz Serwatka

Friday 25 March 2005 4:48:41 am

You can use "Schedule Agent". Go to Control Panel->Scheduled task and add new task.

For windows look in to PHP_ROOT\CLI\PHP.exe

More about Schedule Agent you can find in Windows help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 08:05:19
Script start
Timing: Jan 31 2025 08:05:19
Module start 'layout'
Timing: Jan 31 2025 08:05:19
Module start 'content'
Timing: Jan 31 2025 08:05:19
Module end 'content'
Timing: Jan 31 2025 08:05:19
Script end

Main resources:

Total runtime0.0202 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.3906151.2422
Module start 'layout' 0.00750.0038 739.632836.7109
Module start 'content' 0.01130.0070 776.343894.2500
Module end 'content' 0.01830.0019 870.593833.9922
Script end 0.0202  904.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002813.7305140.0002
Check MTime0.00136.6442140.0001
Mysql Total
Database connection0.00136.259910.0013
Mysqli_queries0.003818.892830.0013
Looping result0.00000.162710.0000
Template Total0.00125.910.0012
Template load0.00084.014110.0008
Template processing0.00041.893310.0004
Override
Cache load0.00052.679610.0005
General
dbfile0.002110.238680.0003
String conversion0.00000.056640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs