Send download link via Email

I’m trying to send a download link via Meteor Email. There is that option to send html but clicking the link does nothing. The parameter I send as html is message:

var href = 'data:text/json;charset=utf-8,' + encodeURIComponent(data)
var message = '<a href='+href+ 'download="assessment_data.json">Download Assessment Data</a>'

it seems that your href is not correct, you want quotes within the string, e.g. if your href is then you nee do this:

var message = '<a href="'+href+'">google</a>'

Thanks! I tried the following but still isn’t working. I think href needs to be a url with https.

var href = 'data:text/json;charset=utf-8,' + encodeURIComponent(data)
var html = '<a href="'+href+ '" download="assessment_data.json" >Download Assessment Data</a>'