try changing:
session_commit();
to:
session_write_close();
session_commit(); is an alias of the session_write_close(); that should be defined on all servers, but in some cases, the alias will not work.
to edit an existing instance of universal email, open the server behaviors window, window -> serve behaviors) and double click the universal email server behavior.