Validate Email in php [duplicate]

2019-01-09 16:45发布

问题:

Possible Duplicates:
What’s wrong with this RegEx for validating emails?
How to verify if a email address exists?
How to check if an email address exists without sending an email?

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.

回答1:

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



回答2:

No, the only way you can truly validate an email is to send it an email containing a validation link.



标签: php email