Detect that the mail is sent

Hello

I use the default the blackberry email application to send an e-mail. I want to detect when the mail is sent and want to generate pop up with a message like "mail sent to the user successfully.

How ever I can generate the string as "mail sent to [email protected] suceesfully", but it is how can I detect when mail is sent so that I can write pop up in this block?

Please help on this.

I thank.

OK got the answer

All I have to do is record MessageListener and do things about it. As

m.addMessageListener(new MessageListener() {

             public void changed(MessageEvent e) {                 if (e.getMessage().getStatus() == Message.Status.TX_SENT) {           //Do Write Your Code Here                 }             }         });

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • locked computer, black white screen

    I have locked my computer by mistake and now can't log on. When I turn the computer on the screen is black and I can not know how to unlock

  • Windwos Explorer stopped working: CLMedia.dll

    Original title: _ _ problem event name: _APPCRAS__ Explorer Windows stopped working

  • correct faulty run configuration

    I based my project on one of the samples and simply copied. Now that it does something that I wanted to rename it, I changed the name of the project, the name of the pro file in the handle bar and the makefile. I ran clean and build later, the genera

  • Cisco Aironet autonomous 1602i

    I'm having a difficult time linking the stand-alone Cisco Aironet 1602i access point to my network. How to connect it to the network so that when I try to connect to the AP via a wireless device, I see the SSID? Thanks, let me know. Dan

  • Middle button of the mouse X220T BLOCK trackpoint interruptions?

    I found that I can't move the cursor of the mouse using the trackpoint when I the central button of the mouse. This is quite annoying in situations (i.e. game Diablo 3 move forced). What is a hardware limitation? Windows 7 x 64.