update sendEmail api for alarmsystem