This topic is locked

mail after update

11/4/2009 2:38:09 AM
PHPRunner General questions
M
munkeh author

Hi,
Have been searching the forums, found a few solutions but didnt manage to make it happen.
We have a checkbox option with these settings :
Has Payed? YES NO
When the Payment (who is default on NO) is changed from status NO to YES, then we would like to send an email to the customer.
Any tips?
Thanks in advance,

J
Jane 11/4/2009

Hi,
use After record added event and Send simple email action on the Events tab for this purpose.

Here is just a sample:

if ($values["FieldName"])

{

//send email here

...

}



where FieldName is your actual field name.

M
munkeh author 11/4/2009

Hi,
Since this is a checkbox, do I need something more then the code below?

Because when I update one of the other fields, it also sends this email (which it should not do, since we want it only to send this email when the checkbox is on YES)
Thanks in advance,



Hi,
use After record added event and Send simple email action on the Events tab for this purpose.

Here is just a sample:

if ($values["FieldName"])

{

//send email here

...

}



where FieldName is your actual field name.

J
Jane 11/4/2009

I recommend you to publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages. I'll help you with same code.

M
munkeh author 11/4/2009

Jane,
You were 100% right. I used a radio button instead of a check button... my fault...

Works a charm now.

Thanks for the help!