Check if messages has been sent successfully


Sometimes, messages are sent to recipient and they are never receive by him. Is it possible to throw an exception if sendMessage method failed or to have a new api method for checking the status of sended message. I’'d prefer an exception if the message failed.



Hello Emmanuel,

Smack already provides this functionality via the MessageEventManager and the MessageEventNotification and MessageEventRequest interfaces.

Check the Javadocs for more info and have a look at the extended documentation which should help you on your way in this.


Thanks, i’'ll look at them