Unifi Controller - Failed to send email for unknown reasons

I was recently trying to set up email alerts for the Unifi Controller but kept running into the error: Failed to send email for unknown reasons.

Failed to send email error message

The problem seems to relate to an incompatible use of TLS/SSL. I've found two ways to resolve this problem:

From testing both methods above will send email alerts over a secured connection.