You are currently reviewing an older revision of this page.
Please note that Appian 22.3+ uses the Jakarta Mail library. Appian versions prior to this use the JavaMail library.
Appian is deprecating the use of the JavaMail (javax.mail) library in Appian 22.2 for replacement with the modern Jakarta Mail (jakarta.mail) library in Appian 22.3.
The Jakarta Mail library is a set of abstract APIs that model a mail system. (Jakarta Mail was previously known as JavaMail before migration into the Apache Foundation.) The library provides a platform independent and protocol independent framework to build Java technology based email client applications.
For many of the custom plugins implementing the JavaMail library, the update to use the Jakarta Mail library requires the update of the import statements in each java class to move from the use of ‘javax.mail’ to the ‘jakarta.mail’ package and the ‘javax.activation’ to the ‘jakarta.activation’ package in order to use the new library appropriately.
Steps:
package com.appiancorp.plugins.example.mail; import java.util.Date; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import org.apache.log4j.Logger;
package com.appiancorp.plugins.example.mail; import java.util.Date; import java.util.Properties; import jakarta.mail.Authenticator; import jakarta.mail.Message; import jakarta.mail.PasswordAuthentication; import jakarta.mail.Session; import jakarta.mail.Transport; import jakarta.mail.internet.InternetAddress; import jakarta.mail.internet.MimeMessage; import org.apache.log4j.Logger;