Not a fan of using Gmail SMTP because not only does it require you to have a valid gmail login but anyone you send an email from has to be a valid email account. So if any of your emails don't have the email address you're authenticating with for the connection, they won't go through. This probably explains the first error.
The second error is because it needs a secure port.
I suggest using SendGrid. It's free for up to 25,000 emails per month and you don't have the hassle as you do with Gmail.