Hi
Hope you are doing well, I have total experience of 4.5 yrs in automation.
I have worked on :
Languages : Java, Ruby, Python , C# and Groovy
Tools : Selenium, Gradle, Maven, Cucumber, Junit , TestNg, Rest assured , Test Complete, Katalon and Appium
I can create an automation script to read the emails from gmail using Gmail API with java and Selenium, which will accomplish your requirements and it doesn't even require browser to open. Please let me know if this is suitable to you.
Thanks