updates: sendmail, registr, passw reset

use update sql and start from mail.php
Merge pull request #1 from sutt0n/Ivan

updates: sendmail, registr, passw reset