<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>1.5.4</version>
</dependency>
<parent> <groupId>com.sun.mail</groupId> <artifactId>all</artifactId> <version>1.5.4</version> </parent>