在 php 中验证电子邮件 [英] Validate Email in php

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

问题描述

可能的重复:
这个 RegEx 验证电子邮件有什么问题?
如何验证电子邮件地址是否存在?
如何检查电子邮件地址是否存在不发送电子邮件?

我想知道是否可以使用 php(带或不带库)验证电子邮件地址.当我说验证时,我的意思不是正则表达式匹配,而是验证电子邮件地址实际上是可以发送电子邮件的有效地址.

I was wondering if it was possible to validate an email address with php (w/library or without). When I say validate I don't mean a regex match I mean verify that the email address is actually a valid address in which emails can be sent.

推荐答案

那是验证而不是验证,是的,这是可能的,这里 是一个教程,向您展示了如何操作.

That is verification rather than validation, and yes it is possible and here is a tutorial which shows how you go about it.

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

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