<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/javax.mail.jar</systemPath>
</dependency> 原文:http://blog.csdn.net/benjamin_whx/article/details/36671659