...
Note that to understand if the message has been accepted by the gateway is recommend that you do one messages document status query. It is recommended that is done not sooner that 1 sec after the send process. If done earlier you may get a -230 error saying the document Id does not exist. If you do get this error you can repeat the request until a non error response is returned. (assuming you are quering the correct documentId under the correct username and pw)
...