Mail: There was an error testing your email settings
Check your Craft storage/logs folder for the underlying error message.  You can also use these knowledge base articles to help debug what's going on based on what you find:

https://craftcms.com/knowledge-base/troubleshooting-email-errors

https://craftcms.com/knowledge-base/why-doesnt-craft-send-emails