Now no error 500 raised, but the mail test not works correctly