This is a discussion on email address verify and cleanup script? within the PHP Language forums, part of the PHP Programming Forums category; Is there anyway to verify an email address before you send it? Does anyone know of a way to clean ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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! |
|
|||
|
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 =-- |
|
|||
|
NotGiven <noname@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 |
|
|||
|
"NotGiven" <noname@nonegiven.net> wrote in message
news:pSFNb.2510$0t4.959@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 |
|
|||
|
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" <noname@nonegiven.net> wrote in message news:pSFNb.2510$0t4.959@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! > > |
|
|||
|
On 2004-01-16, NotGiven <noname@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 |
|
|||
|
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" <noname@nonegiven.net> wrote in message > news:pSFNb.2510$0t4.959@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/ |
|
|||
|
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" <euki@pi.be> napisal w wiadomosci news:bu7e3q$egnkt$1@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. |