generate notification content on server side