question

__pp__ avatar image
__pp__ asked

Attach URL at runtime to custom email template using cloud script

Hi,

Is there a way to attach an URL at run time to my custom email template using cloud script.?

I want to send an email link for the user to download a file hosted in my CDN.

I am using unity sdk. (hopefully will be migrating to c sharp sdk )

CloudScriptContent
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

No. PlayFab does not support to attach URLs when you send the email to players based on the email templates. There is only a Server API SendEmailFromTemplate that can send an email based on an email template to a player's contact email. This API does not provide the option of attaching URLs at runtime. For your situation, you can consider providing a download website and adding a “Download Page” URL as the Callback URL of email templates. If so, you can update the download web page when you want to provide a new link to players.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.