I am trying to add an image in the mail which is being triggered using a webscript(written in java). I have given the following path in the ftl file (mail template) - ${shareUrl}/res/components/images/abc.png, also have kept the image on the path - tomcat/webapps/share/components/images.
I am new to alfresco, not sure for some reason the image is not being rendered in the mail. A blank block appears in the mail when sent. Is there any other path that I would need to give in the ftl?
Solved! Go to Solution.
You could try couple of tests to ensure whether image is really accessible or not.
1- When you have configured image in ftl file as: ${shareUrl}/res/components/images/abc.png
Check if you are able to access it directly via browser. e.g. if your share is running on localhost, the URL would be http://localhost:8080/share/res/components/images/abc.png. Hit the URL in browser and see if image is loading properly.
2- If you are using ssl and your share is running e.g. https://<somehost>/share then check, what URL you actually get when email is recieved. You can save the email as html file and inspect the URL.
Make the corrections accordingly.
You could try couple of tests to ensure whether image is really accessible or not.
1- When you have configured image in ftl file as: ${shareUrl}/res/components/images/abc.png
Check if you are able to access it directly via browser. e.g. if your share is running on localhost, the URL would be http://localhost:8080/share/res/components/images/abc.png. Hit the URL in browser and see if image is loading properly.
2- If you are using ssl and your share is running e.g. https://<somehost>/share then check, what URL you actually get when email is recieved. You can save the email as html file and inspect the URL.
Make the corrections accordingly.
Thanks for the help. It is working fine now.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.