I think google uses tls not ssl for the encryption. If that still doesn't work, give me a call and I'll help you debug it. We will create a blank page to just send an email and get that working first.
We were able to get this working in a screen sharing session. We had to adjust some settings in the google workplace as well as the gmail settings in order to allow "insecure apps" to send emails.