<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<version>1.6.5</version>
</dependency>
<parent> <groupId>com.sun.mail</groupId> <artifactId>all</artifactId> <version>1.6.5</version> </parent>