ticket sending message routine improved

fixed issue #221