Currently, I am sending a link within an email which points to a downloadable PDF file:
<a
style="cursor:pointer;
href="'.get_site_url().'/wp-content/generated-pdfs/topplaatje-'.$post_id.'-'.$count.'.pdf"
download>PDF Print '.$count.'</a>
Unfortunately, when users click this link in their email client, they're taken to their browser where the PDF displays. I want it to download directly, instead of opening in browser.
I added the download tag to the <a href, but to no avail. Any ideas?