Flex – Validate Email Address against the Mail Server

Here is a small piece of code I wrote to demonstrate Interacting with a Command, through an Event while using a Cairngorm Framework.

The application connects to a WSDL webservice via Flash Builder 4 Data/Services to validate an Email address against the Email Server. Doesn’t work well with domains with a ‘Catch-All’ email address though !

Explanation :

  • ValidateEmail.mxml dispatches an event (ValidateEvent) passing Email ID, along with a CallbackFunction as parameters.
  • The ‘Data’ is received in the Cairngorm Command (ValidateCommand), and the Responder Result Function is set accordingly.
  • Delegates into action
  • We handle the Webservice response in ValidateEmail.mxml

For a better explanation, see Flex – Interacting with a Command, through an Event

Built & Tested on Flex 4.
View Demo
View Source

Webservice used from WebServiceX

Do post in your comments !

Installing the AIR SDK on Flash Builder
Flex Cairngorm - Interacting with a Command, through an Event

By Immanuel Noel

A techie at heart. Works with Adobe at Bangalore, India. Currently do DevOps. Been a part of the ColdFusion Engineering, Flash Runtime Engineering, Flash Builder Engineering teams in the past. Was a Flash Platform Evangelist, evangelizing the Adobe Flex platform. Spoke at numerous ColdFusion / Flash and Flex tech conferences. This blog is a collection of some of my strides with technology.

More on me on the home page

2 replies on “Flex – Validate Email Address against the Mail Server”

This blog appears to get a great deal of visitors. How do you get traffic to it? It gives a nice unique spin on things. I guess having something real or substantial to say is the most important factor.

Leave a Reply

Your email address will not be published. Required fields are marked *