PDA

View Full Version : Flex Email API or Flex using Java Mail API


Ronald.Ruly
04-30-2007, 06:45 AM
Hi All

I am a newbie to Flex and Actionscript.

[goal] : build a Flex application that uses Java Mail API or Flex Email API to send and receive emails.

[problem] : I have imported the java mail API (.jar) to Flex Builder 2 and I can see that the java mail classes are inside the folder within the project. Subsequently, I wrote 'import javax.mail.*' in the main.mxml. When I compiled it, there is an error message "javax.mail is not found ...".

[question] :
1. How to 'link' the import statement to the imported java mail API classes?
2. Is there any other alternatives to send / receive email using Flex programmatically ?

Thanks for your attention
Best Regards
Ronald

dr_zeus
04-30-2007, 11:30 PM
You cannot import Java classes into Flex. Flex uses ActionScript 3.0 and runs on Flash Player, not the Java Virtual Machine.

Ronald.Ruly
05-02-2007, 02:23 AM
Hi Josh.

Thanks for the reply. I guess I need to use the actionscript 3.0 socket programming to send and retrieve email.

Best Regards
Ronald

ThePatriot
10-30-2007, 02:02 PM
Hi Josh.

Thanks for the reply. I guess I need to use the actionscript 3.0 socket programming to send and retrieve email.

Best Regards
Ronald
Hi...
Have u reached ur goal???
i'm also asked to develop such an application.
but asked to try without socket programming.
Can we use a MailAPI and access the same from javascript???