Not getting not to send an e-mail

I need to send an email through my application, in silence, without user intervention.

The example mentioned here

https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/PIM/messages.html

does not help, because MessageBuilder doesn't have a default constructor.

It has a static method create, who needs an account ID.

I'm unable to collect entries to retrieve this ID for the e-mail account.

as mentioned here

http://supportforums.BlackBerry.com/T5/native-development/send-email-is-getting-failed-on-personal-s...

using a default account gives the account number-1 and dint help either.

Need to find the account ID valid for e-mail accounts.

Help, please!

You should be able to get an account by default if one is set up (is there an e-mail account on the device that you have tested with?), but you can also browse the list of accounts returned by accountService::accounts (Service::Typeservice) and choose the one you want.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for