This topic is locked

Email Changed Fields Record Only After Record Edited

5/13/2013 4:07:50 PM
PHPRunner General questions
T
Tayyab Ilyas author

Hi
I wants to send email after record edit but only those fields which are edited along with both old and new values.
I am trying following code but it is not working any help / guidance.


$email="example@email.com";

$from="example@email.com";

$msg="";

$subject="Record Edited - Claim ID ".$values['claimID'];
foreach($values as $field=>$value)

{

if(!IsBinaryType($pageObject->pSet->getFieldType($field)))

if($values!=$oldvalues)

$msg.= Lable($field)." : ".$value." : ".$oldvalues."\r\n";

}
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));

if(!$ret["mailed"])

echo $ret["message"];


Sergey Kornilov admin 5/16/2013

Could you clarify what exactly not working?
PS. At the very least fix the spelling: Lable -> Label