How to send email from localhost - • Send email from Localhost and PHP
Also, for simplicity, I used MD5. You should use Crypt() or PASSWORD_HASH at minimum for password security. Also, it is best to use prepared statements as opposed to the SQL methods used in this video (I haven't had time to update)