Hi Gil,
I tested your code - snippet within my dev enviroment (trunk).
I added the function to addressbook_ui.
Altered the reciever.
Changed the condition
if ($GLOBALS[‘egw_info’][‘apps’][‘notifications’][‘enabled’])
to
if ($GLOBALS[‘egw_info’][‘user’][‘apps’][‘notifications’])
(and the warning (if not available) at the end of your function accordingly.)
I called it while saving an contact
It works as you think it should.
The reciever got the notification via eMail.
I am still able to access my mailbox via the email module.
Sorry I can not reproduce the error state you get into.
Best regards
klaus