Additionally, the full error message in <flarum>/storage/logs will contain the actual SMTP error that should hopefully make it obvious which setting is wrong.
One possible issue if everything looks good is that your host might be blocking SMTP by default. DigitalOcean does that for example, you need to ask them to get SMTP enabled.