<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
<parent> <groupId>com.sun.mail</groupId> <artifactId>all</artifactId> <version>1.4.7</version> </parent>