asserts in first function in smtp.php