gMail SMTP test email

I’ve setup gMail SMTP for my server and Cloudways seems to think it’s correct BUT I don’t get the test emails. The error message says something went wrong (but doesn’t tell me what) and I don’t receive the test email.

The exact error message is “Unfortunately, operation failed due to unexpected error.”