Click button to send email with variables

QuestionsClick button to send email with variables
Josh asked 7 years ago

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.


5 Answers
Abu Ghufran answered 7 years ago

Hello Josh,

I am sending you a sample code for this need.


Chao Shun Jenq answered 7 years ago


May I get one too?


Abu Ghufran answered 7 years ago


I've emailed you the code.

RG answered 6 years ago

Hi Abu,
Could you send me the code as well.

Abu Ghufran answered 6 years ago


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

11 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?