Confusion with e-mail feature

Hello,

I am a little confused with the use of the e-mail notification feature.

I have found the enable_update_notice_email_sending variable in the configuration and enabled it. I have also set the insert_notice_email_to_recipients_ar array to the users I'd like to notify. We currently do not need any cc or bcc entries in the sent message.

I do not understand how to associate which table needs to have a record added to it to trigger the notification.
Also, where is the subject and the message body defined or located?

My guess is to change the <app web root>/include/custom_functions/operational_hooks.php file to include the needed logic but I have not found any clear examples in the documentation for a simple "hello world" notification to test this feature out and get us started. This is slightly confusing because the documentation references the "built in" e-mail capability and also adding a custom function in the operational hooks.

Can you point me in the right direction? What us the simplest way to turn on a notification when a record is added to a table called 'events' for example?

We have built a sophisticated set of tables for tracking various metrics and their related valid thresholds so the next logical evolution is to send notifications for those metrics that fall outside the thresholds. I did not want to regurgitate all the schema details here, but get some simple feedback on sending a basic notification.

Thanks as always.

-Todd

App details:

Your current DaDaBIK version​

You are using DaDaBIK version 11.11-Elba platinum, installed on 05-20-2024 (installation code: 19635664bda3d38809), the latest version of DaDaBIK is 12.1-Aveto released on 06-03-2024
System info
PHP Version: 7.4.6
mysql version: 5.5.5-10.5.13-MariaDB
Web server: Apache
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
 

Edwin

Member
Hello, you can define yourself which table with an operational hook. I will give you a simple example out of my app. Of course you can code more complexity and do some field validation before the email sending is triggered.

1719908374700.png

Hope this helps.
Cheers!
 
Top