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

Adobe AIR Development

Reply
Regular Contributor
Posts: 90
Registered: ‎09-04-2009
My Device: Blackberry Z10
My Carrier: Airtel

Sending email

hi,

 

can i send email on playbook simulator?

How to send email in application.

 

Thanks

Developer
Posts: 1,003
Registered: ‎01-16-2011
My Device: PlayBook (sim)
My Carrier: Rogers

Re: Sending email

Umm, I think the only way to send an email from the device right now is through the web browser. When the actual device launches you will be able to connect your BlackBerry device over bluetooth and you will have a native email client.

 

As for sending an email from an application, I believe you'd have to write your own email app within your app. Because there is no native solution, you can't just jump into the email client (at this time). Who knows if this will change in a month or so though.

- If you like my response/post, or it helped you find an answer you were looking for, please provide a Kudo - white star to the bottom right of this post. -
- Please use the search bar at the top, or check out the PlayBook FAQ's for help getting started -
- Hockey DrillBook -
Regular Contributor
Posts: 90
Registered: ‎09-04-2009
My Device: Blackberry Z10
My Carrier: Airtel

Re: Sending email

thanks jffurlan for reply,

 

can you post sample for sending email?

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Sending email

You should look for a third-party ActionScript library that supports sending "SMTP email" or something like that.  There really aren't any available alternatives right now, and most of us who are interested in sending email are simply waiting to see what RIM announces or offers when the tablet is officially released.


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!
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Sending email

If you just need to send an email out (vs being an email client), you can write some simple server code and just POST the info from the client to your server script which in turn would send out the email.

Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Re: Sending email

So the bottom line is that there is no EASY or NATIVE way to send email presently. If you want to do it, you have to find some way to do it yourself ; either sending raw SMTP to a mail server or creating a web service that can do it for you and senging it via HTTP.

 

The capabilities of the air ASK are nowhere near the capabilities of the Java SDK currently, and this puts a pretty severe limit on the apps that can be developed.

 

Bill

 

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Highlighted
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Sending email

Oh, and I forgot to mention that a search for "email" turns up this "Email capabilities?" thread where this has already been discussed and answered.

 

I remembered that one when I recalled that you can't effectively do SMTP to just any destination unless you can look up the MX records for the domain.  That means John's suggestion of sending to your own server via HTTP, and forwarding the message from there, is really the only viable current option.


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!