Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 214
Registered: ‎03-18-2012
My Device: 8520
My Carrier: Company

Blackberry SendListener problem

Hi ,

       I have used the sendListener  and its below methode invoked when i send the email but when i try to fetch    

       msg.getFrom() it will never return....  please suggest......

 

      public boolean sendMessage(Message msg)
      {

            msg.getFrom();

            return false;

      }

      Actually i want to fetch the email address which is used to send the email

Retired
Posts: 162
Registered: ‎10-11-2011
My Device: BlackBerry 9810
My Carrier: Rogers

Re: Blackberry SendListener problem

Hi There,

 

You may want to use the getAddress() method to get the address associated with the message.

 

Thanks

 

Naveen M

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Blackberry SendListener problem

To get the email address that is being used to send the email, you need to get the store that the message is being sent through. The from address is not populated until the email is sent.