package javax.mail.internet does not exist

Avatar

Avatar
Validate 10
Level 2
rajs73651622
Level 2

Likes

4 likes

Total Posts

42 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
rajs73651622
Level 2

Likes

4 likes

Total Posts

42 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
rajs73651622
Level 2

12-03-2019

I have imported the below package in my sling servlet but getting below errors, please help to resolve the issue. I am using AEM 6.4

import javax.mail.internet.InternetAddress;

Error

package javax.mail.internet does not exist

class file for javax.mail.MessagingException not found

In POM.xml used the below dependency

<dependency>

    <groupId>javax.mail</groupId>

    <artifactId>mail</artifactId>

    <version>1.4.1</version>

</dependency>

View Entire Topic

Avatar

Avatar
Validate 10
Level 2
rajs73651622
Level 2

Likes

4 likes

Total Posts

42 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
rajs73651622
Level 2

Likes

4 likes

Total Posts

42 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
rajs73651622
Level 2

12-03-2019

This one is also correct answer Thanks a lot