473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Check mail account availablity

Hi,
I have a huge mailling list and want to check which mails are real and
which does not exists to reduce the size, is there a function which
will check if ma**@mailserver.somthing exists or not without sending it
a mail.
Thank you..

Oct 23 '05 #1
3 1840
NurAzije wrote:
Hi,
I have a huge mailling list and want to check which mails are real and
which does not exists to reduce the size, is there a function which
will check if ma**@mailserver.somthing exists or not without sending
it a mail.


Some smtp servers implement the rcpt command for this. You connect to the
users' smpt server and do something as follows:

$ telnet mailserver.something 25
220 mailserver.something ESMTP Postfix
$ helo localhost
250 mailserver.something
$ mail from: you@yourdomain
250 Ok
$ rcpt to: ma**@mailserver.something
250 Ok

The last response `250 OK' would indicate that the recepient is known......
in a perfect world! However, in the real world, most mail host are
configured to return this response at all times and bounce invalid email
addresses afterwards.

Another way would be to check the output of the checkdnsrr() function, but
this will only confirm the domain, not that the user is able to receive
email on this domain.

If you really want to have a reliable way of validating email addresses,
nothing beats user intervention. For this you will have to setup a system
which sends a confirmation email to the recepients, which, after they have
clicked a link to confirm their email address, will set a flag for the
address in a database or anywhere you store the addresses.
JW

Oct 23 '05 #2
NurAzije wrote:
Hi,
I have a huge mailling list and want to check which mails are real and
which does not exists to reduce the size, is there a function which
will check if ma**@mailserver.somthing exists or not without sending it
a mail.


FWIW, <news:11*********************@l41g2000cwc.googlegr oups.com> (
http://groups.google.com/group/comp....1755e1414860ed )

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Oct 23 '05 #3
Thank you very much ..
I found a validation class http://www.phpclasses.org ..

Oct 24 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Brearley | last post by:
I need to write a script that will check a catch-all mailbox (pop3) and send a non delivery report back to the sender of the email. Background info: I have a domain hosted on a site that offers...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
2
by: Susanne | last post by:
HI I built a website (for someone else) that sends several data fields to an aol e-mail account. I have noticed on several occasions that the data fields are passed blank to the e-mail. When I...
3
by: Waldy | last post by:
Hi Guys, is there a quick and easy way of testing the availablity of a web service before making the actual web service call? Waldy.
12
by: e_matthes | last post by:
Hello everyone, I am trying to use the mail() function to send a simple, text-only message. I have two websites hosted by the same company, on different servers. One is old and established,...
5
by: Mufasa | last post by:
I've seen web sites that check to make sure an e-mail address is valid. How are they actually doing it? I'd like to integrate that into some code. TIA - Jeff.
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.