// Email Sending event
function Email_Sending($email, $args)
{
if (CurrentPageID() == "edit") {
if ($this->activated->CurrentValue == 1){
$Email->Recipient = $args["rsnew"]["user_email"];
$Email->Subject = "Registration Info";
$Email->Content .= "\nYour email and password is regsitered thanks you. ";
error_log("Sending email function called.");
}
}
return true;
}
When i run the program i got an error "Attempt to assign property "Recipient" on null", Please Help me ?