Have you looked at PHP’s filter_ functions? They’re not perfect, but they do a fairly decent job in my experience.
Example usage (returns boolean):
filter_var($someEmail, FILTER_VALIDATE_EMAIL);
More Related Contents:
- How to validate an email address in PHP
- How to check if an email address exists without sending an email?
- How to block Disposable Email Addresses in your website’s registration form? [closed]
- php form send email
- PHP Errors – Total of four [closed]
- how to send birthday mail from website without opening website [closed]
- How to to send mail using gmail in Laravel?
- Converting HTML to plain text in PHP for e-mail
- Php mail: how to send html?
- PHPMailer – SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- SMTP Connect() failed. Message was not sent.Mailer error: SMTP Connect() failed
- PhpMailer vs. SwiftMailer? [closed]
- How to setup mail in XAMPP locally?
- smtp configuration for php mail
- PHP Email sending BCC
- require(vendor/autoload.php): failed to open stream
- Send email with PHPMailer – embed image in body
- PHP Mail, CC Field
- How to send emails via cron job usng PHP mysql
- PHP Attaching an image to an email
- In PHP, how do I extract multiple e-mail addresses from a block of text and put them into an array?
- How to remove “via” and server name when sending mails with PHP?
- Sending email from localhost
- Why shouldn’t I use PHP’s mail() function?
- Bounce Email handling with PHP?
- Is there a limit when using php mail function?
- Check if email exist php
- Validate Email in php [duplicate]
- phpMailer – How do you Remove Recipients
- Simple PHP form: Attachment to email (code golf)