setting alert messages,sending