Validating and verifying email addresses in PHP

Published: 22 March 2021
on channel: Dave Hollingworth
26,400
429

email validation API: ► https://davehollingworth.com/go/email...

PHP for Beginners course: ➤ https://davehollingworth.net/phpy
PHP MVC course: ► https://davehollingworth.net/phpmvcy
CodeIgniter 4 course: ► https://davehollingworth.net/codeigni...

Often in a PHP web application or website we need a user to provide an email address, for example when they sign up for an account, fill in an order form and so on. How do we make sure the user has entered a valid email address using PHP? One that's a valid format, but also one that isn't fake?

In addition to checking the format, email verification checks whether an email address is accurate, valid, and deliverable. We can check for disposable email addresses, free email addresses and more.

Verifying email addresses will make sure emails you send out will avoid spam filters and keep bounce rates low.

Resources:
https://www.php.net/manual/en/functio...
https://www.php.net/manual/en/book.cu...
https://www.abstractapi.com/email-ver...

Code shown in the video:
https://gist.github.com/daveh/833577a...

00:00 Introduction
00:58 Validate format
03:00 email validation API
08:26 Examples
10:04 Summary

#PHP #email #API


Watch video Validating and verifying email addresses in PHP online without registration, duration hours minute second in high quality. This video was added by user Dave Hollingworth 22 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 26,400 once and liked it 429 people.