I was testing my users accounts on my site, and login works fine for my admin account I created with MySQL in terminal.
But when I try to create a new account with the registration form I have, it shows the succeed message I created:
Thank you for registering
Still the succeed message is shown, the account isn't created and an error occurs:
Unable to send email. Contact the site administrator if the problem persists.