- JDK 1.7+
- Maven 3+
- OAuth Access Token of your Google Account. Check out more details on How to get the access token at OAuth2DotPyRunThrough
- Java Mail API
- OAuth2 Authorization Flow
mvn clean package exec:java -Dexec.args="{FROM_USER_NAME} {FROM_USER_FULLNAME} {FROM_USER_ACCESSTOKEN} {TO_USER_EMAIL}"