PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 17th, 2004, 04:24 PM
cemlouis cemlouis is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 49 cemlouis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Question About mailbox availability

Hi,

I am checking the given mails for my site registeration with the below function:

PHP Code:
function validate_email $email$check_domain=false 

    if (
ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'
        
'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'
        
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$'$email)) 
    { 
        if (
$check_domain && function_exists('checkdnsrr')) { 
            list (, 
$domain)  = explode('@'$email); 
          
            if (
checkdnsrr($domain'MX') || checkdnsrr($domain'A')) { 
                return 
true
            } 
            return 
false
        } 
        return 
true
    } 
    return 
false



I don't know who wrote this one but works well, but this script checks only the domain availability. For ex: the domain "keew.com" exists but the "yourname@keew.com" doesn't exists. So How can I find this out? I mean I also want to know the mailbox is present or not?

Thank you,
Cem Louis

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > About mailbox availability


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway