473,503 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4651
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
5264
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
4956
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
9857
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
5657
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
3003
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
1911
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
3131
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
1804
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
4342
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
7271
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
7319
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
7449
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...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.