Hi
We are using asset share commons default email template
and EmailShareServiceImpl.java for sending assets links for download.
However, after sharing an asset via email, the download attribute within the anchor tag links is being eliminated. But other attributes like href, alt are allowed. I want to know is there any XSSProtection similar config available for email template ?
I
Solved! Go to Solution.
Views
Replies
Total Likes
After an extensive process of debugging and thorough searching, I'm Concluding this matter with a resolution. Enabling the download attribute isn't feasible, as it was being removed on Google SMTP's end. The available options are to either utilize an alternative SMTP service or directly rename files within AEM before sending them.
Can you please check the view-source of an email. could be removed by browser due to invalid attribute. but just check to make sure it is removed from server side but not by the browser.
I have already checked, including testing on various browsers and email platforms such as Outlook and Gmail. It appears that the removal of the download attribute might be occurring at the SMTP level.
Hi @MayurSatav,
If your use case supports it, you might want to consider utilizing a data- attribute, such as data-download.
Thanks.
After an extensive process of debugging and thorough searching, I'm Concluding this matter with a resolution. Enabling the download attribute isn't feasible, as it was being removed on Google SMTP's end. The available options are to either utilize an alternative SMTP service or directly rename files within AEM before sending them.