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
New Contributor
ashutosh_maurya
Posts: 5
Registered: ‎02-25-2013
My Device: Blackberry-10

BlackBerry Cascades sending email without user interaction

i would like to send email without user interaction...means user just need to press a button and mail automatically get send to the particular person....

and also how to get information like device id, OS version , currently running/installed apps in blackberry z10?

if any body know about this please reply with code or some good example.

Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: BlackBerry Cascades sending email without user interaction

[ Edited ]

I have tried to use "bb.action.SENDEMAIL" instead of "bb.action.COMPOSE", but it always open the email composer and it also has a problem the subject and the body could not be set up with the specified parameters. Maybe the action of sendemail is not available right now.

 

I suggest you can use a web service to do this kind of business requirement.

 

As well as, there are two kinds of methodologies to get device id hardware info, one is using BPS, another one is using Hardwareinfo: http://developer.blackberry.com/cascades/reference/bb__device__hardwareinfo.html. You can do search in this forum by "get pin"




p(^_^)q
Good good study, day day up
Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: BlackBerry Cascades sending email without user interaction

This can be done using bb:: pim::message API. Check the source code of messages application.

It will require a permission though (if composer is invoked as a card the permission isn't needed).

 

 

https://github.com/blackberry/Cascades-Samples/tree/master/messages

 

Docs:

http://blackberry.github.com/Cascades-Samples/messages.html

 

 


Andrey Fidrya, @zmeyc on twitter
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: BlackBerry Cascades sending email without user interaction

[ Edited ]

Thank you. Zmey. I just found this source repository by your reference. I will look through it. Thanks

 

Update: just tested and it works.




p(^_^)q
Good good study, day day up
New Contributor
ashutosh_maurya
Posts: 5
Registered: ‎02-25-2013
My Device: Blackberry-10

Re: BlackBerry Cascades sending email without user interaction

i need to send mail using my id and password but if check code it is using device account... so if possible please provide some code to send mail.... using id and password..

Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: BlackBerry Cascades sending email without user interaction

You can have a try to program this kind of function by Qt.  I found one similar post but you need to modify: http://www.qtcentre.org/threads/2221-Sending-email-using-Qt But I think that there would be a security issue if you don't use an account within the device.




p(^_^)q
Good good study, day day up
New Contributor
ashutosh_maurya
Posts: 5
Registered: ‎02-25-2013
My Device: Blackberry-10

Re: BlackBerry Cascades sending email without user interaction

thanks for example but it also uses inbuilt id and password i guess... i am developing an app that send log about user device so i need to use my email id and password hard coded so it won't be a security issue for user...