This is a clone of Comfirm AplhaMail J2EE Client project. Just re-organize file structure and add Maven pom.xml.
Add dependency to your Maven project pom.xml:
<repositories>
...
<repository>
<id>jiwhiz.maven</id>
<name>Jiwhiz Maven Repository</name>
<url>https://github.com/jiwhiz/maven/raw/master/</url>
</repository>
</repositories>
...
<dependencies>
...
<dependency>
<groupId>com.comfirm.alphamail</groupId>
<artifactId>alphamail-java-client</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>
See my blog post Send Email Through AlphaMail Inside CloudFoundry for exemplary usage.