深圳网站制作中aSP检测网站邮箱Email是否有效

用aSP程序检测网站邮箱Email是否有效
<%
function IsValidEmail(email)
dim names, name, i, c
IsValidEmail = true
names = Split(email, "@") 是否含有邮箱的必需条件@字符
if UBound(names) <> 1 then
IsValidEmail = false
exit function
end if
for each name in names
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Mid(name, i, 1)
if InStr("abcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZ_-.", c) <= 0 and not IsNumeric(c) then ‘限定某些特定字符
IsValidEmail = false
exit function
end if
next
if Left(name, 1) = "." or Right(name, 1) = "." then
IsValidEmail = false
exit function
end if
next
if InStr(names(1), ".") <= 0 then
IsValidEmail = false
exit function
end if
i = Len(names(1)) - InStrRev(names(1), ".")
if i <> 2 and i <> 3 then
IsValidEmail = false
exit function
end if
if InStr(email, "..") > 0 then
IsValidEmail = false
end if
end function
%>


当前名称:深圳网站制作中aSP检测网站邮箱Email是否有效
文章分享:http://www.kmzsk.com/view/130112.html

其他资讯

Copyright © 2026 昆明姝彩聂商贸有限公司 All Rights Reserved 滇ICP备2025072963号-9
友情链接: 网站制作 成都托管服务器 响应式网站设计 搜索引擎优化 成都定制网站 网站设计 成都微信小程序开发公司 友情链接 成都租用服务器 网站托管 外贸营销网站 高防服务器租用 成都云服务器租用 做网站 移动服务器托管 全网整合营销推广 成都定制网站网页设计 网站托管运营 成都网站推广 成都物理服务器租用 商城网站建设 抖音代运营