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

Web and WebWorks Development

Reply
New Contributor
Posts: 9
Registered: ‎05-03-2013
My Device: BB simulator
My Carrier: tim

Black berry 10 email API

Hi all, 

I would like to know if there are any native libraries that allow you to send email, I have to make a plugin for apache cordova but the only way I've found around it is through the cascades apis .... but these are useless in a plugin of cordova.

 

Thanks at All in advance!

Alessandro.

BlackBerry Development Advisor
Posts: 758
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Black berry 10 email API

You can use Invocation to send email. I'm not sure if you need to do this in the background, or if it's okay for the user to see the composer card or not, but it may be what you're looking for.

 

Here's the invocation info: https://developer.blackberry.com/html5/documentation/beta/email.html

 

...and there's a sample app here: https://github.com/blackberry/BB10-WebWorks-Samples/tree/WebWorks-2.0/Invocation

New Contributor
Posts: 9
Registered: ‎05-03-2013
My Device: BB simulator
My Carrier: tim

Re: Black berry 10 email API

Dear Chad,

this is the solution for those who develop with bb10 webworks? but I do not have a webworks app but created with apache cordova!

I think my only way is to create a plugin in C + + or am I wrong?

 

Best regards,

Alessandro.

Highlighted
BlackBerry Development Advisor
Posts: 758
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Black berry 10 email API

Well you're not wrong in a sense, but there is a way easier way than building a C++ plugin in this case Smiley Happy

 

You're right about the email composer card being a WebWorks thing. WebWorks 2.0 is actually powered by Cordova, so while there isn't a Cordova API for the email composer card, using WebWorks APIs is a lot easier (and makes more sense in this case to me) than creating a plugin.

 

Checkout the APIs here: https://developer.blackberry.com/html5/apis/v2_0/