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
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



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

  1. 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. 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

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>