Click button to send email with variables

QuestionsClick button to send email with variables
Josh asked 11 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.

Thanks

5 Answers
Abu Ghufran answered 11 years ago

Hello Josh,

I am sending you a sample code for this need.

Regards,

Chao Shun Jenq answered 11 years ago

hello,

May I get one too?

Regards,

Abu Ghufran answered 11 years ago

Hi,

I've emailed you the code.

RG answered 11 years ago

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

Abu Ghufran answered 11 years ago

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.

http://pastebin.com/AG9T71ZY

Your Answer

2 + 2 =

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?