How to get the status of doc.send(true)?

Hi,I am using doc.send(true) in lotus notes to send a document, and update the document status after making sure the document has been send successfully. something like this logic:


call doc.send(true)

if doc has been send successfuly then

doc.Status = “Processed”

endif

Now, my question is how can I decide the doc.send(true) returns successful result?

Thanks

Subject: sent

basically if the script gets past that line of code then it was successfully sent, however, you cannot trap, in the script, if the mail failed to reach it’s destination. If any errors occur you can trap them using an OnError statement.