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