I was finally able to get this to work. I changed my config to :
Server smtp.gmail.com
Port: 465
Use Authentication
User : mygmailusername
Pass : mygmailpass
Secure Con Type : SSL
Then I run the PDI job and this caused google to send a Suspicious sign-in prevented
email to mygmailusername
account. I opened the email and clicked on the http://support.google.com/mail?p=client_login. at the bottom of the email. This took me to a troubleshooting page.
Under the section Now, please follow the steps below to resolve the problem: I clicked on the link at the third option http://www.google.com/accounts/DisplayUnlockCaptcha and then clicked continue. Now it works perfectly now.