How would I go about writing the code to send an email when a button is clicked and a specific value equals something?
For instance, if the column 'Gender' is equal to 'male' then send an email when I click a button regarding that specific ID/row. I would also like to pass all the variables from that record/row.
The button would link to something like 'submit.php' with the code of the email contents/capture all the POST variables from the row.
Your help is greatly appreciated.
Thanks
5 Answers
Hello,
This would be very simple using custom on_update callback.
See following code and attached file. No need for other file.
I haven't executed the code as it needed db but it should be similar.
Your Answer