コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

A download attribute is being removed after an email is sent.

Avatar

Community Advisor and Adobe Champion

Hi

 

We are using asset share commons default email template

 

MayurSatav_0-1692163210283.png

 

and EmailShareServiceImpl.java for sending assets links for download.

 

MayurSatav_1-1692163349265.png

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 ?

 

MayurSatav_2-1692163468459.png

I

1 受け入れられたソリューション

Avatar

正解者
Community Advisor and Adobe Champion

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.

元の投稿で解決策を見る

4 返信

Avatar

Community Advisor

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.

Arun Patidar

AEM LinksLinkedIn

Avatar

Community Advisor and Adobe Champion

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.

Avatar

Community Advisor

Hi @MayurSatav,

If your use case supports it, you might want to consider utilizing a data- attribute, such as data-download.

Thanks.

Mahedi Sabuj

MS-29LinkedIn

Avatar

正解者
Community Advisor and Adobe Champion

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.