The code is made public and you can clone/fork it for your development.
The code makes use of JavaMail
API which is used to compose, write and read emails.
The JavaMail
API provides protocol-independent and plateform-independent framework for sending and receiving mails.
More about JavaMail
API can be found here.
If the code is being tested/run on an application(IntelliJ, Eclipse, etc.) follow the steps below.
-
The Dependecies are available in the folder here.
-
Import the dependancies into the workspace and the code should now be able to execute perfectly fine. (raise an issue if it doesn't work)
If you are using a terminal/cmd, make sure the .jar
files are in the same directory as the code and follow the steps.
- Load the .jar file
set classpath=mail.jar;activation.jar;.;
- Compile the source code
javac Gmail.java
- Run the code
java Gmail
For any issues, raise an issue here.