Added SMTP support

Changed register.php