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
Contributor
Posts: 27
Registered: ‎08-06-2010
My Device: Not Specified

File browser and sending e-mail with attachment

Hi all,

 

In my application i need to browse a picture and attach that with the e-mail and need to send to customized mail id. Am using Flash builder burrito and adobe air SDK

 

Can some help me by providing sample code.

 

Thanks in advance.

 

Regards,

Sampath

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

Re: File browser and sending e-mail with attachment

Nope, because we don't yet have any information about an API for email on the PlayBook.

 

There are past threads about this which you can search to find more.


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: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch

Re: File browser and sending e-mail with attachment

You might be able to use the CameraRoll to browse  for a picture. I've tried and have not had any success, but maybe you can get somewhere with it. Otherwise you are looking at the File.BrowseForOpen() (and similar methods) which are at this point pretty sadly broken. I've posted a work-around, but its not ideal.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: File browser and sending e-mail with attachment

You can upload the selected image to a server of yours and use a backend language (e.g. PHP) to then send an email with the photo as an attachment.

Contributor
Posts: 27
Registered: ‎08-06-2010
My Device: Not Specified

Re: File browser and sending e-mail with attachment

ok thank u for ur response.

 

you having any sample code for this(PHP-email attachment) and also i want to know how to use PHP codings in Flash builder burrito.

 

 

Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch

Re: File browser and sending e-mail with attachment

You can't use PHP in FlashBuilder. He meant you could create a web page which uses PHP to receive the file on a server.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: File browser and sending e-mail with attachment

There are lots of examples in how to upload a file to a server.  Adobe has a few that covers the AS3 side as well as the PHP side.  From there, you can use the mail API in PHP to send it out.  There are also 3rd party PHP libraries that do an excellent job with sending email.