Unable to get Email with Attachments for AEM Forms on JEE Platforms unable-to-get-email-with-attachments
The issue applies to the following version:
- Experience Manager 6.5 Forms
Issue issue
User is not able to perform operations such as Send PDF via Email or Include Attachments with Submission configuration.
Solution solution
-
Download jar as java.mail-1.0.jar and unzip the downloaded jar file to obtain the manifest file.
-
Use the manifest file of
java.mail-1.0.jar
retrieved from Step 1 to create a custom jar file say asjava.mail-1.5.jar
. -
Open the manifest file and replace all the occurrences of
1.5.0
with1.5.6
andBundle-Version: 1.0
withBundle-Version:1.5
-
Create a custom jar (
java.mail-1.5.jar
) file by using following command inC:\Adobe\Adobe_Experience_Manager_Forms\java\jdk\bin
folder as:jar -cfm java.mail-1.5.jar manifest.mf
In the above command, manifest.mf is the name of the manifest file and java.mail-1.5.jar is the name of the file that would be created after executing the above command.
-
Download javax.mail-1.5.6.redhat-1.jar.
-
Navigate to
http://<server name>:<port>/lc/system/console/bundles
and delete the bundle with a name asJavaMail API (com.sun.mail.javax.mail) version 1.6.2
. -
Install
java.mail-1.5.jar
obtained from step 3. This step restarts the sling properties of the JEE deployment. Wait for the installed bundles athttp://<server name>:<port>/lc/system/console/bundles
to show Status as Active.In case the status is still InActive, restart JBoss® from the Services Console.
-
Install
javax.mail-1.5.6.redhat-1.jar
file downloaded using step 5. -
Stop JBoss® from the Services Console and append the following properties to Sling.properties file:
org.osgi.framework.system.packages.extra=javax.activation; version\=1.2.0
sling.bootdelegation.activation=javax.activation.*
-
Restart JBoss®.