Can't get email notifications to work with gmail

I've tried setting up email alerts to my gmail account. I set up the email notifications with Customer SMTP server. I specify my email account and generated a 16 character API password. I have double authentication enabled on my gmail account. However, when it send the notification I get a Username and Password not accepted. I've used the API password for other applications without having a problem. Any suggestions on what might be wrong? Any help is appreciated.