Skip to content Skip to sidebar Skip to footer

Check If Download Link Works In Email

I am creating an email that will send out a link to a PDF in an Azure Blob Container. I am also playing a time limit on the link so it will no longer work after 30 days. Here is wh

Solution 1:

You can set static page in Azure Blobs.

You can refer the offical document to create your download page which contains the logic of time limit. If the link does not expire, download it, and if it expires, jump to your custom error page.

enter image description here

You can upload your DownloadPage.html,and modify code. The value of uri set like https://pan**storage.blob.core.windows.net/asset-*****-4baf-48a5-9ea1-6cb09319e679/DownloadPage.html?downloadurl=XXXXXXXX&expirationDate=2020-05-22 15:40:30

messageBody.Append("<a href=\"" + uri + "\" download=\"MyGoogleLogo\">Download Quote PDF</a><br />");

In the DownloadPage.html, you can check the link does not expire by parameter expirationDate.

This is just a suggestion, of course, you can also use your own application website for better logic processing.


Post a Comment for "Check If Download Link Works In Email"