Does Notification work in v.5 RC1?

Hi Sir,

I installed and confirgured Formularize v.5 standalone version. It works quite well except
for the notification feature. I tested the mailng service (to user) in ImpressCMS well.
That means the mail setup in ImpressCMS is correct.

How come I can not receive notification mail when the configured events, such as
create and update entries, happens?

Before I dig deeper into the source code, I'd confirm with you that
Notification works in v.5 RC1.

Regards,

Felix Chen

Comments

sendNotifications code

Hi Sir,

the way of notification in Formularize is complicated. The function sendNotifications($fid, $event, $entries, $mid="", $groups=array()) in the include/functions.php does the trick.

I has a question, now that it calls triggerevent() like other Xoops modules, why is the function
sendNotificationToEmail($GLOBALS['formulize_notification_email'], $event, $extra_tags)?

The following is the code shows the sendNotificationToEmail() and$notification_handler->triggerEvent() together. I have no clue why the auto notification does not work.

if (count($uids_real) > 0) {
if (in_array(-1, $uids_real)) {
sendNotificationToEmail($GLOBALS['formulize_notification_email'], $event, $extra_tags);
unset($uids_real[array_search(-1, $uids_real)]); // now remove the special flag before triggering the event
unset($uids_complete[array_search(-1, $uids_complete)]); // now remove the special flag before triggering the event
unset($GLOBALS['formulize_notification_email']);
}
$notification_handler->triggerEvent("form", $fid, $event, $extra_tags, $uids_real, $mid, $omit_user);
}
unset($uids_real);

Resolved! Auto-notification by E-mail

Hi Sir,

for standalone verison of Formularize v.5, one file is required
but missing in the installer.

I move the file to the root folder of formularize
notification_update.php
then go to ImpressCMS module manager to "upgrade" formularize.

Then, the notification option in admin preference becomes available.

Perhaps it is not a clean fix, but I am more than happy.

Regards,

Felix Chen