Sending email using Spring Boot starter mail

There is an incompatibility between the mailapi artifact within Vaadin and spring-boot-starter-mail. This prevents using both sun.javax mail or using Spring boot mail from within Vaadin (I am using V18).

It is fixed with:

		 <dependency>
            <groupId>com.vaadin</groupId>
            <!-- Replace artifactId with vaadin-core to use only free components -->
            <artifactId>vaadin</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>javax.mail</groupId>
                    <artifactId>mailapi</artifactId>
                </exclusion>
			</exclusions>
        </dependency>

Hi! Thanks for posting the workaround - it might be helpful for someone else facing the same issue. There’s already an open GitHub ticket with some discussion on the topic: https://github.com/vaadin/flow/issues/8588

ok - thanks - I had searched the forum but not Github - I woud have found the answer quicker if I had !