I think you are using the wrong username and password. I think you need to use an app specific password. Read more here:
https://support.google.com/accounts/answer/185833
Please download the page I uploaded. I've added debug code that will help you when investigating why the email isn't sending and I've adjusted other settings so that it should work once you get the correct app password in place.