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

Native Development

Reply
Highlighted
New Developer
Posts: 10
Registered: ‎12-08-2013
My Device: Z10
My Carrier: *

Read email "To" recipients returns always only the first one

hi,

i have been trying to retrieve the "TO" email recipients but Message -> recipients returns only 1 recipient..

is there a way to retrieve all the email TO or CC / BCC recipients?

thanks in advance,

itzik 

 

Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Read email "To" recipients returns always only the first one

Hi leloussovoleg,

 

The Message::recipients() function returns a QList of all recipients of the message. Are you sure you are reading the entire QList and not just the first element of the returned list? Please share your code snippet.

 

Reference documentation for the MessageContact API: http://developer.blackberry.com/native/reference/cascades/bb__pim__message__messagecontact.html

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker