Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Peardrop CMS 0.2.3
  • CommaFeed 0.0.1
  • Squash
  • Pick-a-Color 1.1.5
  • MVIS Security Center 1....
  • EasyZoom 1.0.3
  • jQueryGantt
  • IMDBPHP 2.1.8
  • Dynamic WordPress Form ...
  • PathFinding.js 0.4.1
  • Home > Scripts > Snippets

    validateEmail

    download button


    Downloads: 377  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    16 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Frank Vogel | More scripts
    px.sklar.com
    Freeware 

    Windows / Linux / BSD / Solaris
    N/A
    PHP
    June 25th, 2007, 09:50 GMT
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    validateEmail description

    validateEmail looks not only in TLD for MX _records_, also in sub-domains.

    This version of validateEmail() looks not only in TLD for MX _records_, also in sub-domains. Its necassary for adresses like someone@uibk.ac.at.

    This function takes in an email address (say 'shane@tuna.org' and tests to see if it's a valid email address. 

    An array with the results is passed back to the caller. Possible result codes for the array items are: 

    Item 0: [true|false] true for valid email address false for NON-valid email address 

    Item 1: [SMTP Code] if a valid MX mail server found, then fill this array in with failed SMTP reply codes 

    Item 2: [true|false] true for valid mail server found for host/domain false if no valid mail server found 

    Item 3: [MX server] if a valid MX host was found and connected to then fill in this item with the MX server hostname

    EXAMPLE code for use is at the very end of this function.



    TAGS:

    validate Email | Email snippets | php email | validate | Email | php

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM