I was developing an AIR application recently and wanted to validate the email credentials of the user.
I searched a lot and could not get any component, library or code snippet available to do this in Flash/Flex/AIR.
So, I thought of developing a small library of my own and sharing it with the community. And here it is…
IMAP/POP Email Validator
This is a small set of class library which Flex/AIR developers can use to validate any IMAP or POP email logins. This does NOT use Coldfusion or LCDS server in the backend. This connects to given IMAP/POP server using Flash Socket and executes required commands to validate the login.
Example

Checkout the above Sample ( Save the SWF locally and play with it )
Due to cross domain restrictions in Flash Player, when this application is hosted on any domain other than mail server’s domain, a “crossdomain.xml” file needs to be configured and kept on the mail server.
But, this issue does not come in AIR based applications and Flex applications that are running locally.
So, grab a copy, check out the samples and try it with your Intranet/Internet apps..





What license, if any, is this code released under? I’d like to use it in one of my upcoming projects.
I’m releasing this code library under “Public Domain” license and you are allowed to use it with/without changes in any of your personal/commercial projects.
Please refer to the below link for further details about this license type.
http://www.gskinner.com/blog/archives/2008/07/source_code_lic_1.html
Hi Srinivas,
Very cool; looking forward to playing with it. Thanks for sharing this
This looks pretty useful for an app that I have in mind. Does this just verify that the details are correct or does it allow you to view folders / download mail ect.
If it doesn’t I’m sure that it will at least give me a good start.
Thanks