Gmail and other big email providers will check if SMTP access has been performed by an automated program or not. If they do they will likely block keylogger connection, limiting your email providers options.
In short, don't use big providers like Gmail but rather go for less known ones or country-based providers.