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

Posts: 11
Registered: ‎05-30-2013
My Device: 9700
My Carrier: BlackBerry

BB 10 Cascades qml sending a simple email

 found one example in the the git hub for BB 10 for sending an email, but it looks pretty complicated and alot done in C.

does anyone have an example on how to send a quick email using QML. I don't need any buttons or text fields, just hard coded values.

I found this simple snip, but dont' know how to integrate it.


Any help would be appreciated.

Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: BB 10 Cascades qml sending a simple email

you would have to use c++ for that, it is not exposed in pure qml so far.

on how to integrate both.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: BB 10 Cascades qml sending a simple email

Does your use case require that the app send the email without the user being involved, or could it merely invoke the email composer as a Card, with predefined recipient, subject, and body, and let the user choose whether to hit Send or Cancel?

Doing the composer thing is doable purely from QML now, I believe. There's a thread I can find if that would work.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!