Reputation: 2115
I am facing a little problem with Transport.send(msg)
function of Blackberry API. In my application I need to send a sound file. But I want to know what happens if the device loses connectivity in middle of sending the email.
I tried to enclose the Transport.send(msg)
call within try catch block but it never throws exception even if I manually turn off the Wi-Fi from the device while the file is being sent. If by any chance email could not be sent I want to show the user a dialog saying that email could not be sent.
Upvotes: 0
Views: 94