Verifying the domain of an e-mail address

Last update on October 24, 2009 06:49 AM by jak58
Published by deri58

Verifying the domain of an e-mail addresse









rigjt


There are two parties for an email addresse : the username and the domain name

username@domain



The domain part defines a set of associated machines in which it requires a server for sending emails. In the domain there are different users. However it is currently impossible to verify the validity of an email addresse. Moreover the DNS server can detect whether the domain address exist or not.

In order to make this kind of verification, it may limit to a least a minimum damage when for a user to submit his email address.

Some features of PHP enable a query for DNS server. There is one who has the advantage of being simple and adequate for what you want to do: checkdnsrr (). It takes as argument a domain name and return TRUE or FALSE as the field exists or not.


To test the validity of an addresse domain name, run the following:

$domain = explode('@', $email);
if (checkdnsrr($domain[1]))
	echo "Domain for valid address";
Best answers for « Verifying the domain of an e mail address » in :
Verify and e-mail address format Show Verify and e-mail address format Using a filter With regular expressions Example of use Explanations What does the code do There are several ways to determine if a variable contains a valid email address. These techniques do not...
E-mail Address Not Verified Show [E-mail Address Not Verified] is displayed next to the username Introduction Configure your email address so that it works on MSN Messenger Introduction When you use MSN Messenger or Windows Live Messenger with an address not...
Verifying the domain of an e-mail address Show Verifying the domain of an e-mail addresse There are two parties for an email addresse : the username and the domain name username@domain The domain part defines a set of associated machines in which it requires a server...
Outlook Express – unable to open e-mail attachments ShowOutlook Express – unable to open e-mail attachments Issue Solution Issue If you are receiving e-mails with attachment files and you are unable to open or save them, this is because your antivirus is blocking access to open. It is...
[Nokia N97] Configure your email Show[Nokia N97] Configure your email Yahoo Settings Hotmail Account Settings Configuring email for Nokia N97 Yahoo Settings Incoming e-mail: username: your email address password: your password Incoming mail server:...
Obtaining a disposable email address ShowKasmail Spambox Jetable mail Enterto spamless email Yopmail Firefox extension Obtaining a disposable email address A disposable email is an e-mail service enabling you to send and receive mail for a short period. This practice is...
Download Atomic Mail Verifier ShowAtomic Mail Verifier is simply a tool which allows to verify the validity of e-mail address list. The control is done in three levels: - control of the address syntax, - control of the existence of the address in the host server - complete...
E-mail bombing ShowE-mail Bombing E-mail bombing involves sending several thousand identical messages to an electronic mailbox in order to overflow it. E-mails are stored on a messaging server until they are picked up by the owner of the messaging account. In this...
Messaging protocols (SMTP,POP3 and IMAP4) ShowIntroduction to e-mail E-mail is considered as being the most widely used service on the Internet. So the TCP/IP protocol suite offers a range of protocols allowing the easy management of email routing over the network. The SMTP protocol The...
Structure of an email (Headers and bodies) ShowStructure of an email An email has three basic parts: The header, a set of lines containing information about the message's transportation, such as the sender's address, the recipient's address, or timestamps showing when the message was sent by...