How to make on edit page a Save and Send button on version 5.3. Sent should be only changed info and email address is included in edit page field.
Following code worked on 5.2 but not on 5.3
on edit page
<INPUT id=submit2 class=button value="Save and Send" type=submit name=submit2>
and BeforeEdit event
$msg="";
if ($_REQUEST["submit2"]=="Save and Send" )
{
global $conn;
$email=$oldvalues["email"];
$subject="Answer on Claim No:".$keys["ID"]."\r\n";
foreach($values as $field=>$value)
{
if(!IsBinaryType(GetFieldType($field)))
$msg.= $field." : ".$value."\r\n";
}
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg));
}
}
return true;
Thanks
KS