I add an icon to the script to send mail.

It works:

body += '<img src=http://s1.iconbird.com/ico/2013/12/517/w24h241386955471success8.png width="20" height="20">'; 

I understand what should look like this, but it does not work.

 body += '<img src= sheet.getRange("K1").getValue() width="20" height="20">'; 

The question is how to substitute the value from the cell K1 ( url icons)?

    1 answer 1

     body += '<img src= ' + sheet.getRange("K1").getValue() + ' width="20" height="20">'; 
    • Thank you for your help! - Alex