472,989 Members | 2,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

email address verify and cleanup script?

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
7 4628
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
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
"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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: vishal | last post by:
how can i verify the email address entered by client??? is there any readily available function for that in php or mysql????? else suggest me some links for verifying email address enetered...
9
by: news | last post by:
There's all kinds of ways to validate an email address to make sure it's well formed and whatnot, but what about checking to see if it's a valid e-mail account? Like how you can use checkdnsrr()...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
5
by: Dan Williams | last post by:
Apologies for the cross-post but i thought i'd aim for the largest audience possible. I have a web site that users have to register to with their email address. The site then emails the user...
4
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
4
by: Mike | last post by:
Hi all, In my recent ASP.NET 2.0 appl, I need to verify that the supplied email address is valid or not. So, here's my situation: - In my <profilearea, I created <isVerifiedproperty. - Suppose a...
1
by: Grey | last post by:
I have to write a program to verify email address availability. i have to verify thousand of email address. is there any way to verify the email in ..net instead. the requirement is to verify which...
3
by: Grey | last post by:
I have to write a program to verify email address availability. i have to verify thousand of email address. is there any way to verify the email in ..net instead. the requirement is to verify which...
4
by: akhilesh.noida | last post by:
I am trying to write a program that can verify an email address without sending mail to it. any hint/clue will be quite useful to me.
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.