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: 15
Registered: ‎10-10-2008
My Device: Not Specified
Accepted Solution

Blackberry Mail API Question

Good Afternoon,

 

I'm looking for a way to get the email address of the person SENDING a message when a message is being sent from the device. So, if I'm sending an email via my blackberry to Suzy, when I call this API, I shoult get john.smith@blackberry.com. A quick check of getFrom() yields a NULL value.

 

Any suggestions?

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Blackberry Mail API Question

Hi, If you are looking for the default email id for which the BB device is configured, try this..

Session.waitForDefaultSession().getServiceConfiguration().getEmailAddress()

 

Tnx.


Use Search. "Accept Solution" If the problem is resolved.
Highlighted
Developer
Posts: 15
Registered: ‎10-10-2008
My Device: Not Specified

Re: Blackberry Mail API Question

Thanks! That worked out well.