guid = 0; $notification->emailaddress = $_REQUEST['emailaddr']; $notification->alertlevel = (int)$_REQUEST['alertlevel']; $notification->enabled = true; //add the new email notification add_notification($user, $notification); $returnMessage= "A new email address has been successfully added. $notification->emailaddress will now receive email notifications."; } ?> Add email notification