|
function BeforeAdd(&$values)
{
//Parameters:
//$values - Array object.
//Each field on
the Add form is represented as a 'Field name'-'Field value' pair
// **********
Send simple email ************
$email = "test@test.com";
$message = "Hello
there\nBest regards";
$subject = "Sample
subject";
mail($email, $subject, $message);
return true;
//return true if
you would like to proceed with adding the new record;
//return false otherwise
} |