Flex – Validate Email Address against the Mail Server

Written by

in

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
Download

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

Comments

2 responses to “Flex – Validate Email Address against the Mail Server”

  1. Lexie Reeb Avatar

    Hi,your blog looks nice. I decided to build a blog for my self too.I am trying to learn how to write good posts and your posts are a good guide.

  2. Sally Saari Avatar

    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 *