Contents

 
Home
PHPRunner 6.1 manual
Prev Page Next Page
 
 

Send an email with updated fields only

 

To send an email with updated fields only use the following code in Edit page: Before record updated event.

yellowbulbNote: Change the values listed in red to match your specific needs.

$body = "Changed fields \n";

foreach ($values as $key => $value)

{

   if ($value!=$oldvalues[$key])

      $body .= $key . ": " . $value . "\n";

}

$email="test@test.com";

$subject="Sample subject";

runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $body));

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)