Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
10-16-2013 07:32 AM
I need to send an email through my application, silently without user interaction.
The example mentioned here
does not help, for MessageBuilder does not have a default constructor.
it has a static method create, that needs an account ID.
i'm unable to gather inputs to retrive this account ID for email.
as mentioned here
using a default account gives the account ID as -1 and dint help either.
Need to find the valid account ID for email accounts.
Solved! Go to Solution.
10-16-2013 08:24 AM
10-16-2013 09:25 AM
I'm not sure i m getting your answer, what i ment to say was :
MessageBuilder* _builder = (MessageBuilder::create(_accountID));
I'm unable to get the '_accountID' for email account, like for sms-mms we would provide,
QList<Account> account_list = _accountService->accounts(Service::Messages, "sms-mms");
// save its internal ID value for future API calls
_smsAccountId = account_list.first().id();
I want to do the same for Email messages.
10-17-2013 03:25 PM
You should be able to get a default account if one is set up (is there an email account on the device you tested with?), but you could also go through the list of accounts returned from accountService::accounts (Service::Typeservice) and pick the one you want.