如何验证电子邮件地址? [英] How to validate email-addresses?

查看:111
本文介绍了如何验证电子邮件地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个拥有几家鞋店的客户。

如果客户希望在销售时收到通知,可以留下他们的电子邮件地址。

输入用instr验证()

我正在检查@和。 (必填)并检查空格(不允许)。

但是:很多(5-10%)的地址仍然是错的; (提供商不存在)或电子邮件地址无效(不再)。

发送群发邮件时,一个令人讨厌的问题是从合并中获取虚假地址。


其他人如何处理此问题?

我想我可以使用某种提供者 - 表格?

" jo ***** @ hotmail.com"没关系

" jo ***** @ hotnail.com"是错的


谢谢,

Arno R

Hi all,

I have a client with several shoe-shops.
Customers can leave their email-address if they want to be notified when there is a sale.
Input is validated with instr()
I am checking for @ and . (required) and also checking for spaces (not allowed).
But: A LOT (5-10%) of the addresses still are wrong; (provider doesn''t exist) or email-address not valid (anymore).
When sending bulk-mail its a nasty problem to get the false addresses out of the ''mergetable''.

How are others dealing with this?
I guess I could use some kind of a ''provider''-table?
"jo*****@hotmail.com" is OK
"jo*****@hotnail.com" is wrong

Thanks,
Arno R

推荐答案



Arno R < AR *********** @ tiscali.nl> schreef在bericht新闻:42 ********************* @ dreader2.news.tiscali .nl ...

大家好,


我有一个拥有几家鞋店的客户。

如果客户希望在销售时收到通知,可以留下他们的电子邮件地址。

输入用instr验证()

我正在检查@和。 (必填)并检查空格(不允许)。

但是:很多(5-10%)的地址仍然是错的; (提供商不存在)或电子邮件地址无效(不再)。

发送群发邮件时,一个令人讨厌的问题是从合并中获取虚假地址。


其他人如何处理此问题?

我想我可以使用某种提供者 - 表格?

" jo ***** @ hotmail.com"没关系

" jo ***** @ hotnail.com"是错误的


对不起可能造成的混淆......

我说''提供者''我的意思是域名当然。

主要问题是@


之后的字符串Arno R

"Arno R" <ar***********@tiscali.nl> schreef in bericht news:42*********************@dreader2.news.tiscali .nl...
Hi all,

I have a client with several shoe-shops.
Customers can leave their email-address if they want to be notified when there is a sale.
Input is validated with instr()
I am checking for @ and . (required) and also checking for spaces (not allowed).
But: A LOT (5-10%) of the addresses still are wrong; (provider doesn''t exist) or email-address not valid (anymore).
When sending bulk-mail its a nasty problem to get the false addresses out of the ''mergetable''.

How are others dealing with this?
I guess I could use some kind of a ''provider''-table?
"jo*****@hotmail.com" is OK
"jo*****@hotnail.com" is wrong

Sorry for possible confusion ...
Where I say ''provider'' I mean ''domain'' of course.
The main problem is the string after the @

Arno R


我认为这个问题的答案在本讨论的主题之外的一些代码中,你可能会尝试一些PHP代码:

http://www.sitepoint.com/article/use...il-address-php


琳达


" Arno R" < AR *********** @ tiscali.nl>在消息中写道

news:42 ********************* @ dreader2.news.tiscali .nl ...


" Arno R" < AR *********** @ tiscali.nl> schreef in bericht

news:42 ********************* @ dreader2.news.tiscali .nl ...

大家好,


我有一个有几家鞋店的客户。

如果客户希望收到通知,可以留下他们的电子邮件地址当

有卖出。

输入用instr验证()

我正在检查@和。 (必填)并检查空格(不允许

)。

但是:很多(5-10%)地址仍然是错误的; (提供商不存在
存在)或电子邮件地址无效(不再)。

发送批量邮件时出现一个令人讨厌的问题,以获取虚假地址

''合并''。


其他人如何处理这个?

我想我可以使用某种一个''提供者'' - 表格?

" jo ***** @ hotmail.com"没关系

" jo ***** @ hotnail.com"是错误的


对不起可能造成的混淆......

我说''提供者''我的意思是域名当然。

主要问题是@


Arno R
I think the answer for this problem lies in some code which is outside the
topic of this discussion, but you might try some PHP code:

http://www.sitepoint.com/article/use...il-address-php

Linda

"Arno R" <ar***********@tiscali.nl> wrote in message
news:42*********************@dreader2.news.tiscali .nl...

"Arno R" <ar***********@tiscali.nl> schreef in bericht
news:42*********************@dreader2.news.tiscali .nl...
Hi all,

I have a client with several shoe-shops.
Customers can leave their email-address if they want to be notified when
there is a sale.
Input is validated with instr()
I am checking for @ and . (required) and also checking for spaces (not
allowed).
But: A LOT (5-10%) of the addresses still are wrong; (provider doesn''t
exist) or email-address not valid (anymore).
When sending bulk-mail its a nasty problem to get the false addresses out of
the ''mergetable''.

How are others dealing with this?
I guess I could use some kind of a ''provider''-table?
"jo*****@hotmail.com" is OK
"jo*****@hotnail.com" is wrong

Sorry for possible confusion ...
Where I say ''provider'' I mean ''domain'' of course.
The main problem is the string after the @

Arno R


" Linda Burnside" < linda@nospam_burnsidebiz.com>写在

新闻:%p **************** @ newssvr17.news.prodigy.com:
"Linda Burnside" <linda@nospam_burnsidebiz.com> wrote in
news:%p****************@newssvr17.news.prodigy.com :
我认为这个问题的答案在于本讨论主题之外的一些代码,但您可能会尝试一些PHP代码:

http://www.sitepoint.com/article/use...il-address -php
I think the answer for this problem lies in some code which is
outside the topic of this discussion, but you might try some PHP
code:

http://www.sitepoint.com/article/use...il-address-php




是否有适用于Access的RegExp插件?


-

David W. Fenton http://www.bway.net/~dfenton

dfenton at bway dot net http:// www.bway.net/~dfassoc


这篇关于如何验证电子邮件地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆