How to remove data-saferedirecturl from email which is added automatically

Viewed 1448

I am sending email using php with download link to an exe file. But gmail adds data-saferedirecturl attribute to anchor tag which does not allows to download the file. If the url if copied paste in new tab download starts.

<a href="urlgoeshere" download data-saferedirecturl="https://www.google.com/url?q=urlgoeshere&source=gmail&ust=1648747518176000&usg=AOvVaw1WTfnD2mM-yfsLTAChuqtT"> </a>

How do I stop this from happening

1 Answers

Email providers are inserting your code into their website/app. They therefore have a layer of security which changes your code. They have to explicitly allow (whitelist) every bit of code and do things like the above to ensure security. There is often no way around it, for good reason.

I say "often", because sometimes there are workarounds. There is no known workaround for this.

Related