By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,079 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,079 IT Pros & Developers. It's quick & easy.

email address verify and cleanup script?

P: n/a
Is there anyway to verify an email address before you send it?

Does anyone know of a way to clean up an email address, like check for "me
@theend.co"

The above has a space before "@" and is jissing a "M" in "com".

If you have any ideas or know of an existing script to do this, please send
or link. Thanks!
Jul 17 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
NotGiven wrote:
Is there anyway to verify an email address before you send it?

No.
But you can try to make sure it is valid.
Here is a regexp to do it
http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html

The page does not specifically say anything about PHP, but I believe it
works (never tested it though)
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Jul 17 '05 #2

P: n/a
NotGiven <no****@nonegiven.net> wrote:
Is there anyway to verify an email address before you send it?
No.
Does anyone know of a way to clean up an email address, like check for "me
@theend.co"

The above has a space before "@" and is jissing a "M" in "com".


There is no missing m in the example above. .co is the tld for Columbia.

The space is invalid, the exact syntax of an emailaddress is defined in
rfc 822 (in chapter 6). But don't put to much effort into this, because
a syntactically valid emailaddress doens't have to exist..

--

Daniel Tryba

Jul 17 '05 #3

P: n/a
"NotGiven" <no****@nonegiven.net> wrote in message
news:pS****************@bignews5.bellsouth.net...
Is there anyway to verify an email address before you send it?

Does anyone know of a way to clean up an email address, like check for "me
@theend.co"

The above has a space before "@" and is jissing a "M" in "com".

If you have any ideas or know of an existing script to do this, please send or link. Thanks!


this may give you a good head start

http://www-4.gzentools.com/snippetvi...v=emailval.php

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #4

P: n/a
I'm trying to figure out a way to weed through email addresses before I send
them out and get TONS of returned mail.
"NotGiven" <no****@nonegiven.net> wrote in message
news:pS****************@bignews5.bellsouth.net...
Is there anyway to verify an email address before you send it?

Does anyone know of a way to clean up an email address, like check for "me
@theend.co"

The above has a space before "@" and is jissing a "M" in "com".

If you have any ideas or know of an existing script to do this, please send or link. Thanks!

Jul 17 '05 #5

P: n/a
On 2004-01-16, NotGiven <no****@nonegiven.net> wrote:
Is there anyway to verify an email address before you send it?

Does anyone know of a way to clean up an email address, like check for "me
@theend.co"

The above has a space before "@" and is jissing a "M" in "com".

If you have any ideas or know of an existing script to do this, please send
or link. Thanks!


You could write your own function that looks up the MX or A of a given
domain. And then try to deliver a message for the given user. The server
will then reply if that user exists or not.

But i think there are already classes out there that do that.
Although i dont like the site, i think they should have a look at
http://www.phpclasses.org
--
http://home.mysth.be/~timvw
Jul 17 '05 #6

P: n/a
Hello,

On 01/15/2004 10:47 PM, NotGiven wrote:
I'm trying to figure out a way to weed through email addresses before I send
them out and get TONS of returned mail.
You may want to try this class as it does exactly what you are asking:

http://www.phpclasses.org/emailvalidation

Anyway, keep in mind that the class itself can't assure that one address
that is not invalidated by the destination SMTP server may still be
invalid because some SMTP servers only bounce messages sent to invalid
addresses after those messages are accepted for delivery.

While not perfect, the solution of this class is much better than
nothing though.

"NotGiven" <no****@nonegiven.net> wrote in message
news:pS****************@bignews5.bellsouth.net...
Is there anyway to verify an email address before you send it?

Does anyone know of a way to clean up an email address, like check for "me
@theend.co"

The above has a space before "@" and is jissing a "M" in "com".

If you have any ideas or know of an existing script to do this, please


send
or link. Thanks!

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Jul 17 '05 #7

P: n/a
Hmmm, does that really work for all SMTP servers? I thought user checking is
usually done by the delivery agent.

I miss the days when you can finger an account to see if it exists.

Uzytkownik "Tim Van Wassenhove" <eu**@pi.be> napisal w wiadomosci
news:bu************@ID-188825.news.uni-berlin.de...
You could write your own function that looks up the MX or A of a given
domain. And then try to deliver a message for the given user. The server
will then reply if that user exists or not.

Jul 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.