Authentication fails on TLS or SSL when using smtp.gmail.com:587 (TLS) or smtp.gmail.com:465 (SSL).
To by-pass the failure, I have to enable less secure apps on the corresponding gmail account for it to work. https://www.google.com/settings/security/lesssecureapps
Is it that this version lacks the latest authentication mechanisms that's causing Gmail to see the authentication attempt as "less secure"?