Email sent to each message

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
pasbonte
Veteran Member
Posts: 162
Joined: 2013-02-06 09:49

Email sent to each message

Post by pasbonte » 2021-09-01 15:29

Hello
I would like to send an email each time a record is created or modified, but not to a defined email but to the email entered by the user.
Let me explain
He enters his name, first name, remarks and his email address
and he receives his message by email.
Thank you

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: Email sent to each message

Post by onoehring » 2021-09-01 18:00

Hi,

take a look at the /admin/incFunctions.php, function sendmail. Utilize this in the /hooks/tablename.php -> after_insert (and/or after_update) function.

Olaf

User avatar
zibrahim
Veteran Member
Posts: 137
Joined: 2020-01-28 18:30
Location: Malaysia

Re: Email sent to each message

Post by zibrahim » 2021-09-04 03:13

Hi Pasbonte (sorry I don’t know your real name :),
Have a look at this AG site material.
https://bigprof.com/appgini/help/advanc ... ter_insert

Hope this will help.
Stay safe.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.

pasbonte
Veteran Member
Posts: 162
Joined: 2013-02-06 09:49

Re: Email sent to each message MERCI

Post by pasbonte » 2021-09-06 08:59

Merci
C'est OK !

Post Reply