[ 
https://issues.apache.org/jira/browse/LOG4J2-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496376#comment-17496376
 ] 

Piotr P. Karwasz commented on LOG4J2-3362:
------------------------------------------

I added a PR that should enable the usage of `jakarta.mail` by adding a new 
`log4j-jakarta-smtp` module to the classpath and either `com.sun.mail:smtp` or 
`com.sun.mail:jakarta.mail`.

> Jakarta EE 9 compatible SMTP appender
> -------------------------------------
>
>                 Key: LOG4J2-3362
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3362
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.17.1
>            Reporter: Andy Wilkinson
>            Priority: Major
>
> This is a follow-on from LOG4J-2978 which addressed Jakarta EE 9 
> compatibility from a web perspective.
> {{SmtpAppender}} uses {{SmtpManager}} which depends upon various 
> {{javax.activation}} and {{javax.mail}} classes from Jakarta EE 8. To allow 
> Log4j 2 to be used in a Jakarta EE 9 environment, an {{SmtpManager}} that 
> uses classes in the new {{jakarta.activation}} and {{jakarta.mail}} packages 
> is required.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to