Hi,
I am trying to send email after updating.
I am using if condition to check the three fields and I have two if condition matsching for one update.
It seems that the phpmaker is just sending email for one condition and stop to work.
How can I send email for each conditions?
Example for table Cases
Status: New
Prio: Important
Anonym: Yes
if ((CurrentPageID() == "edit") && ($args["rsnew"]["Status"] == "New"))
$email->Recipient = mail1@xxx.com;
if ((CurrentPageID() == "edit") || ($args["rsnew"]["Prio"] == "Importatant" && $args["rsnew"]["Anonym"] == "Yes" ))
$email->Recipient = 20maila@xxx.com;
if ((CurrentPageID() == "edit") || ($args["rsnew"]["Status"] == "New" && $args["rsnew"]["Anonym"] == "Yes" ))
$email->Recipient = anona@xxx.com;
In this case all the 3 emails should get different email.
But right now just one email is being sent.
What should I do so that the system can sent more than one mail for all the matched if conditions?
mpol_ch