Hi Guys! I know this is way too old of a topic but i tried everything you did and it didn't work. Except when i turned ON the "Less secure app access" setting from my google account under the security section. After that it worked with port 465 and SSL encryption. Cheers!