03-22-2011 10:33 AM
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
03-22-2011 10:41 AM
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.
03-22-2011 10:47 AM
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.
03-22-2011 10:49 AM
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.
03-23-2011 02:59 AM
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.
03-23-2011 10:23 AM
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.
03-23-2011 10:34 AM
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.