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.jarretrieved 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.0with1.5.6andBundle-Version: 1.0withBundle-Version:1.5 -
Create a custom jar (
java.mail-1.5.jar) file by using following command inC:\51ºÚÁϲ»´òìÈ\51ºÚÁϲ»´òìÈ_Experience_Manager_Forms\java\jdk\binfolder as:jar -cfm java.mail-1.5.jar manifest.mfIn 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 .
-
Navigate to
http://<server name>:<port>/lc/system/console/bundlesand delete the bundle with a name asJavaMail API (com.sun.mail.javax.mail) version 1.6.2. -
Install
java.mail-1.5.jarobtained 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/bundlesto show Status as Active.In case the status is still InActive, restart ´³µþ´Ç²õ²õ® from the Services Console.
-
Install
javax.mail-1.5.6.redhat-1.jarfile downloaded using step 5. -
Stop ´³µþ´Ç²õ²õ® from the Services Console and append the following properties to Sling.properties file:
org.osgi.framework.system.packages.extra=javax.activation; version\=1.2.0sling.bootdelegation.activation=javax.activation.*
-
Restart ´³µþ´Ç²õ²õ®.