I would like to create a pop up in a webmap that shows an icon that you can click on which will generate an e-mail.
With help in this document Create a mailto link with Arcade I have managed to create the arcade expression below and it also includes a subject title and a field from the Layer.
var UPRN = $feature["UPRN_1"];
var email = "someone@someplace.com";
var subject = "Welfare Map issue with UPRN " + UPRN;
var params = {subject: subject};
var url = "mailto:" + email + "?" + UrlEncode(params);
url = Replace(url, "TextFormatting.NewLine", "%0D%0A");
return url;
In the pop up you can click the URL which opens e-mail application with the correct e-mail address and subject

Instead of displaying like above I would like an image/icon similar to what has been achieved in the document link above

I inserted the code into a new expression
<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>b<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">></SPAN></SPAN>Maintenance history:<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"></</SPAN>b<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">></SPAN></SPAN><SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>br <SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">/></SPAN></SPAN>
{expression/expr0}
<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>br <SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">/></SPAN></SPAN><SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>br <SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">/></SPAN></SPAN>
<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>b<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">></SPAN></SPAN>Email History:<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"></</SPAN>b<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">></SPAN></SPAN> <SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>br <SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">/></SPAN></SPAN>
<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>a <SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">href</SPAN><SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">=</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN>{expression/expr1}<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN></SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">></SPAN></SPAN>
<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><</SPAN>img <SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">alt</SPAN><SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">=</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN>Email<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN></SPAN> <SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">height</SPAN><SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">=</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN>50<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN></SPAN> <SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">src</SPAN><SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">=</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN><A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ficons.iconarchive.com%2Ficons%2Fiynque%2Fios7-style%2F1024%2FMail-icon.png" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank">http://icons.iconarchive.com/icons/iynque/ios7-style/1024/Mail-icon.png</A><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN></SPAN> <SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">width</SPAN><SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">=</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN>50<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">"</SPAN></SPAN> <SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">/></SPAN></SPAN>
<SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"></</SPAN>a<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">></SPAN></SPAN>but this generates the error below when you 'Test'
Parse Error:Line 1: Unexpected token <
1) Do I need to create a separate expression?
2) What expression would work to display an image?
Thank you